Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Xamarin.Android crash only on Android 10

I have a project that is working perfectly in any version below api 29.

When i try to run in a Android 10 device the app crashes after show the splash screen, debugger show this error:

Java.Lang.RuntimeException: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout
  at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0008e] in <fc4bff518fb145b08cf1d4e7e1c0cbf6>:0
  at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0005d] in <fc4bff518fb145b08cf1d4e7e1c0cbf6>:0
  at Android.App.Activity.SetContentView (System.Int32 layoutResID) [0x00022] in <4a76267a9af54c85b9b3584cc8303037>:0
  at Garcom.Activities.BaseActivity.OnCreate (Android.OS.Bundle bundle) [0x00040] in <d242ef43b0c34a7b9894c0c17a1c6cf5>:0
  at Garcom.Activities.Login.OnCreate (Android.OS.Bundle savedInstanceState) [0x00001] in <d242ef43b0c34a7b9894c0c17a1c6cf5>:0
  at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x0000f] in <4a76267a9af54c85b9b3584cc8303037>:0
  at at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.1(intptr,intptr,intptr)
  at android.view.InflateException: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout
  at Caused by: android.view.InflateException: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout
  at Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Field.get(java.lang.Object)' on a null object reference
  at at uk.co.chrisjenx.calligraphy.ReflectionUtils.getValue(ReflectionUtils.java:25)
  at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.createCustomViewInternal(CalligraphyLayoutInflater.java:203)
  at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.access$000(CalligraphyLayoutInflater.java:20)
  at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater$PrivateWrapperFactory2.onCreateView(CalligraphyLayoutInflater.java:302)
  at at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:239)
  at at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1069)
  at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:997)
  at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:961)
  at at android.view.LayoutInflater.inflate(LayoutInflater.java:659)
  at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
  at at android.view.LayoutInflater.inflate(LayoutInflater.java:534)
  at at android.view.LayoutInflater.inflate(LayoutInflater.java:481)
  at at android.support.v7.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:631)
  at at android.support.v7.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:518)
  at at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:466)
  at at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
  at at crc64f084fe566d431cdf.Login.n_onCreate(Native Method)
  at at crc64f084fe566d431cdf.Login.onCreate(Login.java:30)
  at at android.app.Activity.performCreate(Activity.java:7802)
  at at android.app.Activity.performCreate(Activity.java:7791)
  at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299)
  at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
  at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
  at at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
  at at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
  at at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
  at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
  at at android.os.Handler.dispatchMessage(Handler.java:107)
  at at android.os.Looper.loop(Looper.java:214)
  at at android.app.ActivityThread.main(ActivityThread.java:7356)
  at at java.lang.reflect.Method.invoke(Native Method)
  at at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
  at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Java.Lang.RuntimeException: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout
  at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0008e] in <fc4bff518fb145b08cf1d4e7e1c0cbf6>:0
  at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0005d] in <fc4bff518fb145b08cf1d4e7e1c0cbf6>:0
  at Android.App.Activity.SetContentView (System.Int32 layoutResID) [0x00022] in <4a76267a9af54c85b9b3584cc8303037>:0
  at Garcom.Activities.BaseActivity.OnCreate (Android.OS.Bundle bundle) [0x00040] in <d242ef43b0c34a7b9894c0c17a1c6cf5>:0
  at Garcom.Activities.Login.OnCreate (Android.OS.Bundle savedInstanceState) [0x00001] in <d242ef43b0c34a7b9894c0c17a1c6cf5>:0
  at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x0000f] in <4a76267a9af54c85b9b3584cc8303037>:0
  at at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.1(intptr,intptr,intptr)
  at android.view.InflateException: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout
  at Caused by: android.view.InflateException: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout
  at Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Field.get(java.lang.Object)' on a null object reference
  at at uk.co.chrisjenx.calligraphy.ReflectionUtils.getValue(ReflectionUtils.java:25)
  at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.createCustomViewInternal(CalligraphyLayoutInflater.java:203)
  at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.access$000(CalligraphyLayoutInflater.java:20)
  at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater$PrivateWrapperFactory2.onCreateView(CalligraphyLayoutInflater.java:302)
  at at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:239)
  at at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1069)
  at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:997)
  at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:961)
  at at android.view.LayoutInflater.inflate(LayoutInflater.java:659)
  at at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
  at at android.view.LayoutInflater.inflate(LayoutInflater.java:534)
  at at android.view.LayoutInflater.inflate(LayoutInflater.java:481)
  at at android.support.v7.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:631)
  at at android.support.v7.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:518)
  at at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:466)
  at at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
  at at crc64f084fe566d431cdf.Login.n_onCreate(Native Method)
  at at crc64f084fe566d431cdf.Login.onCreate(Login.java:30)
  at at android.app.Activity.performCreate(Activity.java:7802)
  at at android.app.Activity.performCreate(Activity.java:7791)
  at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299)
  at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
  at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
  at at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
  at at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
  at at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
  at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
  at at android.os.Handler.dispatchMessage(Handler.java:107)
  at at android.os.Looper.loop(Looper.java:214)
  at at android.app.ActivityThread.main(ActivityThread.java:7356)
  at at java.lang.reflect.Method.invoke(Native Method)
  at at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
  at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

About Visual Studio:

=== Visual Studio Community 2019 for Mac ===

Version 8.6.8 (build 2)
Installation UUID: 62dd4eec-8f9a-439f-b01d-4ea3930db8fc
    GTK+ 2.24.23 (Raleigh theme)
    Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)

    Package version: 610000106

=== Mono Framework MDK ===

Runtime:
    Mono 6.10.0.106 (2019-12/77769615db1) (64-bit)
    Package version: 610000106

=== Roslyn (Language Service) ===

3.6.0-3.20210.9+4eafdcb1bcbd8d3573f2ba6065e56d9b9ce4f8a3

=== NuGet ===

Versão: 5.6.0.6591

=== SDK do .NET Core ===

SDK: /usr/local/share/dotnet/sdk/3.1.302/Sdks
Versões do SDK:
    3.1.302
    3.1.300
    3.1.101
    3.1.100
SDKs do MSBuild: /Library/Frameworks/Mono.framework/Versions/6.10.0/lib/mono/msbuild/Current/bin/Sdks

=== Runtime do .NET Core ===

Tempo de execução: /usr/local/share/dotnet/dotnet
Versões de Tempo de Execução:
    3.1.6
    3.1.4
    3.1.1
    3.1.0
    2.1.20
    2.1.18
    2.1.15
    2.1.14

=== Xamarin.Profiler ===

Versão: 1.6.13.11
Local: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Versão: 11

=== Apple Developer Tools ===

Xcode 11.6 (16141)
Build 11E708

=== Xamarin.Mac ===

Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.

=== Xamarin.iOS ===

Version: 13.18.3.2 (Visual Studio Community)
Hash: ce0cc74a3
Branch: d16-6-xcode11.6
Build date: 2020-07-16 18:15:27-0400

=== Xamarin.Android ===

Versão: 10.3.1.4 (Visual Studio Community)
Fazer commit: xamarin-android/d16-6/3a10de9
Android SDK: /Users/osdinformatica/Library/Developer/Xamarin/android-sdk-macosx
    Versões Android com suporte:
        4.4 (nível da API 19)
        8.0 (nível da API 26)
        8.1 (nível da API 27)

Versão das Ferramentas de SDK: 26.1.1
Versão das Ferramentas da Plataforma SDK: 29.0.4
Versão das Ferramentas de Build do SDK: 28.0.3

Informações do Build: 
Mono: 165f4b0
Java.Interop: xamarin/java.interop/[email protected]
ProGuard: xamarin/proguard/[email protected]
SQLite: xamarin/sqlite/[email protected]
Xamarin.Android Tools: xamarin/xamarin-android-tools/[email protected]

=== Microsoft OpenJDK for Mobile ===

Java SDK: /Users/osdinformatica/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
O código EPL do Android Designer está disponível aqui:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android SDK Manager ===

Version: 16.6.0.50
Hash: 5901879
Branch: remotes/origin/d16-6
Build date: 2020-06-10 22:42:50 UTC

=== Android Device Manager ===

Version: 16.6.0.96
Hash: 6e8b80b
Branch: remotes/origin/d16-6
Build date: 2020-06-10 22:43:28 UTC

=== Xamarin Designer ===

Version: 16.6.0.329
Hash: d4f8bcd13
Branch: remotes/origin/d16-6
Build date: 2020-04-24 02:16:02 UTC

=== Build Information ===

Release ID: 806080002
Git revision: e999e2934e8c771fdf6494b80361dacef9427565
Build date: 2020-07-24 15:17:52-04
Build branch: release-8.6
Xamarin extensions: e999e2934e8c771fdf6494b80361dacef9427565

=== Operating System ===

Mac OS X 10.15.4
Darwin 19.4.0 Darwin Kernel Version 19.4.0
    Wed Mar  4 22:28:40 PST 2020
    root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64

I found this question whith a similar error: "https://stackoverflow.com/questions/57495384/crash-on-calligraphy-library-by-chris-jenx-for-android-q".

The anwser for that was migrate to Calligraphy 3, can i do this in Xamarin.Android? How? Could be something else? What?

Answers

  • JarvanJarvan Member, Xamarin Team Xamurai
    edited August 26

    Error inflating class android.support.v7.widget.FitWindowsLinearLayout

    Did you use linking or proguard for the project? Try to cusotmize the Proguard file to skip the class.

    -keep class android.support.v7.widget.FitWindowsLinearLayout { *; }
    -keep class android.support.v7.widget.** { *; }
    

    Similar issue:
    https://forums.xamarin.com/discussion/126072/binary-xml-file-line-14-error-inflating-class-android-support-v7-widget-fitwindowslinearlayout

  • arturmbrasilarturmbrasil Member
    edited October 26

    @Jarvan now i am using proguard. But now i cant compile.
    I have already tried:

    • update proguard
    • set Java Max Heap Size to 1G
    • enable multidex

    None of this worked.

    The error:
    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.DX.targets(5,5): Error MSB6006: "java" foi encerrado com o código 1. (MSB6006) (Garcom)

    ...
    Destino _CompileToDalvik:
    /Users/osdinformatica/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25/bin/java -jar /Library/Frameworks/Xamarin.Android.framework/Libraries/xbuild/Xamarin/Android/proguard/lib/proguard.jar -include '/Users/osdinformatica/Library/Developer/Xamarin/android-sdk-macosx//tools/proguard/proguard-android.txt' -include 'obj/Release/proguard/proguard_xamarin.cfg' -include 'obj/Release/proguard/proguard_project_references.cfg' -include 'obj/Release/proguard/proguard_project_primary.cfg' -include 'proguard.cfg' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Arch.Lifecycle.Runtime.1.1.1.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Arch.Lifecycle.ViewModel.1.1.1.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.VersionedParcelable.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.Compat.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.CoordinaterLayout.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.Media.Compat.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.Animated.Vector.Drawable.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.Transition.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.v7.AppCompat.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.v7.RecyclerView.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.Design.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -injars "'obj/Release/android/bin/classes/../classes.zip'(!META-INF/MANIFEST.MF):'/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v9.0/mono.android.jar'(!META-INF/MANIFEST.MF):'/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/java_runtime.jar'(!META-INF/MANIFEST.MF):'/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Jetbrains.Annotations.13.0.0.1/build/monoandroid90/../../jar/org.jetbrains.annotations.jar'(!META-INF/MANIFEST.MF):'/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Kotlin.StdLib.1.3.50.1/build/monoandroid90/../../jar/org.jetbrains.kotlin.kotlin-stdlib.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/11/jl/okio.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/10/jl/okhttp.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/21/jl/com.android.support.support-annotations.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/23/jl/com.android.support.collections.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/15/jl/android.arch.lifecycle.common.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/12/jl/picasso-2.5.2.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/13/jl/android.arch.core.common.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/32/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/35/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/34/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/33/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/20/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/18/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/27/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/9/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/0/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/29/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/16/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/45/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/28/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/17/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/1/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/19/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/26/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/44/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/43/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/38/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/36/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/31/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/30/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/37/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/39/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/46/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/41/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/48/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/24/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/4/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/40/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/47/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/2/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/5/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/14/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/22/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/25/jl/bin/classes.jar'(!META-INF/MANIFEST.MF)" -libraryjars '/Users/osdinformatica/Library/Developer/Xamarin/android-sdk-macosx/platforms/android-30/android.jar' -outjars obj/Release/proguard/proguard_output.jar -optimizations !code/allocation/variable
    java.io.FileNotFoundException: /Users/osdinformatica/XamarinForms/Garcom (Is a directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.(FileInputStream.java:138)
    at proguard.FileWordReader.(FileWordReader.java:39)
    at proguard.ConfigurationParser.parseIncludeArgument(ConfigurationParser.java:279)
    at proguard.ConfigurationParser.parse(ConfigurationParser.java:150)
    at proguard.ProGuard.main(ProGuard.java:586)
    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.DX.targets(32,5): error MSB6006: "java" foi encerrado com o código 1.
    Destino de compilação pronto "_CompileToDalvik" no projeto "Garcom.csproj" -- FALHA.

    Projeto de compilação pronto "Garcom.csproj" -- FALHA.

    FALHA da compilação.

    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(560,2): warning XA1023: Using the DX DEX Compiler is deprecated. Please update $(AndroidDexTool) to d8.
    /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2101,5): warning MSB3277: foram encontrados conflitos entre versões diferentes "System.Net.Http" que não puderam ser resolvidos. Esses conflitos de referência estão relacionados no log de build quando o detalhamento do log está definido como detalhado.
    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.DX.targets(32,5): error MSB6006: "java" foi encerrado com o código 1.
    2 Aviso(s)
    1 Erro(s)

    Tempo Decorrido 00:00:08.41

    ========== Build: 0 bem-sucedidos, 1 com falha, 0 atualizados, 0 ignorados ==========

    Build:1 erros, 2 avisos

    Detailed:

    Destino "_CompileToDalvik" no arquivo "/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.DX.targets":
    Compilação de destino "_CompileToDalvik" concluída.
    O arquivo de saída "obj/Release/stamp/_CompileToDalvik.stamp" não existe.
    Tarefa "MakeDir"
    Tarefa em execução pronta "MakeDir".
    Usando a tarefa "Proguard" do assembly "/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Build.Tasks.dll".
    Tarefa "Proguard"
    Variáveis de Ambiente passadas para a ferramenta:
    PROGUARD_HOME=/Library/Frameworks/Xamarin.Android.framework/Libraries/xbuild/Xamarin/Android/proguard
    /Users/osdinformatica/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25/bin/java -jar /Library/Frameworks/Xamarin.Android.framework/Libraries/xbuild/Xamarin/Android/proguard/lib/proguard.jar -include '/Users/osdinformatica/Library/Developer/Xamarin/android-sdk-macosx//tools/proguard/proguard-android.txt' -include 'obj/Release/proguard/proguard_xamarin.cfg' -include 'obj/Release/proguard/proguard_project_references.cfg' -include 'obj/Release/proguard/proguard_project_primary.cfg' -include 'proguard.cfg' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Arch.Lifecycle.Runtime.1.1.1.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Arch.Lifecycle.ViewModel.1.1.1.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.VersionedParcelable.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.Compat.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.CoordinaterLayout.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.Media.Compat.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.Animated.Vector.Drawable.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.Transition.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.v7.AppCompat.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.v7.RecyclerView.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -include '/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Android.Support.Design.28.0.0.3/build/monoandroid90/../../proguard/monoandroid90/proguard.txt' -injars "'obj/Release/android/bin/classes/../classes.zip'(!META-INF/MANIFEST.MF):'/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v9.0/mono.android.jar'(!META-INF/MANIFEST.MF):'/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/java_runtime.jar'(!META-INF/MANIFEST.MF):'/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Jetbrains.Annotations.13.0.0.1/build/monoandroid90/../../jar/org.jetbrains.annotations.jar'(!META-INF/MANIFEST.MF):'/Users/osdinformatica/XamarinForms/Garcom - teste android 11/Garcom/trunk/packages/Xamarin.Kotlin.StdLib.1.3.50.1/build/monoandroid90/../../jar/org.jetbrains.kotlin.kotlin-stdlib.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/11/jl/okio.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/10/jl/okhttp.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/21/jl/com.android.support.support-annotations.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/23/jl/com.android.support.collections.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/15/jl/android.arch.lifecycle.common.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/12/jl/picasso-2.5.2.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/13/jl/android.arch.core.common.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/32/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/35/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/34/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/33/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/20/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/18/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/27/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/9/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/0/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/29/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/16/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/45/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/28/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/17/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/1/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/19/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/26/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/44/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/43/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/38/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/36/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/31/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/30/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/37/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/39/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/46/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/41/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/48/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/24/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/4/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/40/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/47/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/2/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/5/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/14/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/22/jl/bin/classes.jar'(!META-INF/MANIFEST.MF):'obj/Release/lp/25/jl/bin/classes.jar'(!META-INF/MANIFEST.MF)" -libraryjars '/Users/osdinformatica/Library/Developer/Xamarin/android-sdk-macosx/platforms/android-30/android.jar' -outjars obj/Release/proguard/proguard_output.jar -optimizations !code/allocation/variable
    java.io.FileNotFoundException: /Users/osdinformatica/XamarinForms/Garcom (Is a directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.(FileInputStream.java:138)
    at proguard.FileWordReader.(FileWordReader.java:39)
    at proguard.ConfigurationParser.parseIncludeArgument(ConfigurationParser.java:279)
    at proguard.ConfigurationParser.parse(ConfigurationParser.java:150)
    at proguard.ProGuard.main(ProGuard.java:586)
    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.DX.targets(32,5): error MSB6006: "java" foi encerrado com o código 1.
    Tarefa em execução pronta "Proguard" -- FALHA.

Sign In or Register to comment.