So I've been mucking around in xml, and today I ran across an error which was only half printed. Here's the log:
04-06 14:25:20.201 32581 32581 E AndroidRuntime: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class <unknown>
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:378)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.ArrayAdapter.getView(ArrayAdapter.java:369)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at com.kik.view.adapters.ba.getView(SourceFile:324)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.HeaderViewListAdapter.getView(HeaderViewListAdapter.java:220)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.AbsListView.obtainView(AbsListView.java:2346)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.ListView.measureHeightOfChildren(ListView.java:1281)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.ListView.onMeasure(ListView.java:1188)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.View.measure(View.java:18797)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.View.measure(View.java:18797)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.LinearLayout.measureVertical(LinearLayout.java:748)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.LinearLayout.onMeasure(LinearLayout.java:630)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.View.measure(View.java:18797)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.View.measure(View.java:18797)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.LinearLayout.measureVertical(LinearLayout.java:748)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.LinearLayout.onMeasure(LinearLayout.java:630)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.View.measure(View.java:18797)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2899)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.View.measure(View.java:18797)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2100)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1216)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1452)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:670)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:606)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5466)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:645)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: ... 45 more
04-06 14:25:20.201 32581 32581 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Native Method)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:619)
04-06 14:25:20.201 32581 32581 E AndroidRuntime: ... 48 more
04-06 14:25:20.201 32581 32581 E AndroidRuntime: Caused by: java.lang.UnsupportedOperationException: Failed to r
I'm afraid I can't provide more code because I'm not entirely sure which of my xml's is at fault.
Every time I crash it, no matter what, it only prints "Failed to r" then continues logging other errors, which prevents me from seeing the actual ID of the resource it's probably failing to find, and prevents me from figuring out which xml is giving me grief.
I'm not too worried about the error itself; I'm more concerned with the fact logcat is failing me.
Has anyone here encountered this before? Does anyone know any workarounds?
Thanks a million,
~N
EDIT: I've marked wpgbrown's answer correct, as it seems that's the root of the problem, but for any poor soul who comes across this in the future: you'll probably have to change the "entry" buffer size which is hardcoded per ROM.
Logcat can only show a certain amount of characters for each error and log the app outputs. This has been answered before in What is the size limit for Logcat and how to change its capacity?
Also the error is to do with a problem on line 2. You may want to check over all your xml layout files and see if there are any suspicious looking line twos. The log does not really show the class the that it had a error inflating with. I would also check all custom xml objects, such as a custom LinearLayout etc... for any errors.
Related
I built AOSP (android-8.1.0_r52) then flash to nexus 5x
BUT it doesn't support app with armeabi-v7a native library only.
E:\Project\JniApp\app\build\outputs\apk\debug>adb shell getprop ro.product.cpu.abi
arm64-v8a
E:\Project\JniApp\app\build\outputs\apk\debug>adb shell getprop ro.product.cpu.abilist
arm64-v8a,armeabi-v7a,armeabi
here is the error PathClassLoader doesn't find armeabi-v7a librarys
03-04 22:07:32.291 4600 4600 D AndroidRuntime: Shutting down VM
03-04 22:07:32.295 4600 4600 E AndroidRuntime: FATAL EXCEPTION: main
03-04 22:07:32.295 4600 4600 E AndroidRuntime: Process: com.example.jniapp, PID: 4600
03-04 22:07:32.295 4600 4600 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.jniapp-im9SAuaTFDrdrTwHyX9rKg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.jniapp-im9SAuaTFDrdrTwHyX9rKg==/lib/arm64, /system/lib64, /vendor/lib64]]] couldn't find "libnative-lib.so"
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:1011)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1657)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at com.example.jniapp.MainActivity.<clinit>(MainActivity.java:14)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at java.lang.Class.newInstance(Native Method)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at android.app.Instrumentation.newActivity(Instrumentation.java:1174)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at android.app.ActivityThread.-wrap11(Unknown Source:0)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1597)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6506)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
03-04 22:07:32.295 4600 4600 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
03-04 22:07:32.300 839 1853 W ActivityManager: Force finishing activity com.example.jniapp/.MainActivity
03-04 22:07:32.306 839 924 I ActivityManager: Showing crash dialog for package com.example.jniapp u0
03-04 22:07:32.327 839 2093 I OpenGLRenderer: Initialized EGL, version 1.4
03-04 22:07:32.327 839 2093 D OpenGLRenderer: Swap behavior 2
03-04 22:07:32.544 580 793 D audio_hw_primary: disable_audio_route: usecase(1) reset and update mixer path: low-latency-playback
03-04 22:07:32.559 580 793 D audio_hw_primary: disable_snd_device: snd_device(95: vi-feedback)
03-04 22:07:32.560 580 793 D audio_hw_primary: disable_audio_route: usecase(24) reset and update mixer path: spkr-vi-record
03-04 22:07:32.802 839 923 W ActivityManager: Activity pause timeout for ActivityRecord{6d9fbd u0 com.example.jniapp/.MainActivity t9 f}
I'm building a Unity bridge for garmin android sdk. I'm trying to pair with the garmin device. On the first trial it asks for a passcode and connects successfully. If I relaunch the application and try to pair again this exception is thrown:
11-21 19:33:07.640 9601 9601 E AndroidRuntime: FATAL EXCEPTION: main
11-21 19:33:07.640 9601 9601 E AndroidRuntime: Process: com.rikkir.moodie, PID: 9601
11-21 19:33:07.640 9601 9601 E AndroidRuntime: java.lang.Error: FATAL EXCEPTION [main]
11-21 19:33:07.640 9601 9601 E AndroidRuntime: Unity version : 2018.2.6f1
11-21 19:33:07.640 9601 9601 E AndroidRuntime: Device model : BLU Dash X2
11-21 19:33:07.640 9601 9601 E AndroidRuntime: Device fingerprint: BLU/Dash_X2/Dash_X2:6.0/MRA58K/1477454813:user/release-keys
11-21 19:33:07.640 9601 9601 E AndroidRuntime:
11-21 19:33:07.640 9601 9601 E AndroidRuntime: Caused by: java.lang.IllegalStateException: vívosport[A1:A1:A1:A1:A1:A1] is already paired
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at com.garmin.health.awv.a(SourceFile:113)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at com.garmin.health.DeviceManager.pair(SourceFile:61)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at com.garmin.garminhealthbridge.PairingDialogFragment.onAttach(PairingDialogFragment.java:76)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at android.app.Fragment.onAttach(Fragment.java:1391)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:937)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1153)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at android.app.BackStackRecord.run(BackStackRecord.java:800)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1562)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at android.app.FragmentManagerImpl$1.run(FragmentManager.java:487)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:815)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:104)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at android.os.Looper.loop(Looper.java:207)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5728)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
11-21 19:33:07.640 9601 9601 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
11-21 19:33:07.644 813 2707 W ActivityManager: Force finishing activity com.rikkir.moodie/com.unity3d.player.UnityPlayerActivity
This is how I check if already paired:
//if already paired, call the "success" callback rightaway
if(DeviceManager.getDeviceManager().getGcmPairedDevices().contains(scannedDevice)) {
UnityPlayer.UnitySendMessage("GarminSDK", "PairingSucceeded", deviceAddress);
return;
}
else if(DeviceManager.getDeviceManager().getPairedDevices().contains(scannedDevice)) {
UnityPlayer.UnitySendMessage("GarminSDK", "PairingSucceeded", deviceAddress);
return;
}
After these checks, this is how I try to pair:
DeviceManager.getDeviceManager().pair(mDevice, new DevicePairingCallback());
And it crashes. Obviously, I'm not properly checking if the device is already paired. The documentation is scarce. Any help?
I am having a NoClassDefFoundError exception when I added Firebase analytics on my game that is built with gradle so I tried it on this demo app of firebase(https://github.com/firebase/quickstart-unity) and got the same error but with different class. All I did was just change the build settings to gradle, I didnt change any gradle configuration.
My version of unity is 5.6.3f1.
I am using firebase_unity_sdk_5.2.1 plugin.
This is the error from the Analytics Quickstart demo:
09-02 16:21:42.621 2968 2968 E AndroidRuntime: FATAL EXCEPTION: main
09-02 16:21:42.621 2968 2968 E AndroidRuntime: Process: com.DefaultCompany.DefaultProject, PID: 2968
09-02 16:21:42.621 2968 2968 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/measurement/AppMeasurement;
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.analytics.connector.AnalyticsConnectorImpl.getInstance(Unknown Source:23)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.analytics.connector.internal.zzb.create(Unknown Source:8)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.components.zzh.zza(com.google.firebase:firebase-common##16.0.1:29)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.components.zzi.get(Unknown Source:4)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.components.zzh.get(com.google.firebase:firebase-common##16.0.1:40)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.components.ComponentContainer$$CC.get(com.google.firebase:firebase-common##16.0.1:15)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.components.zzd.get(Unknown Source:0)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.components.zzd.zza(com.google.firebase:firebase-common##16.0.1:68)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.FirebaseApp.zze(com.google.firebase:firebase-common##16.0.1:716)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common##16.0.1:329)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common##16.0.1:295)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common##16.0.1:282)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common##16.0.1:37)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at android.content.ContentProvider.attachInfo(ContentProvider.java:1925)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at android.content.ContentProvider.attachInfo(ContentProvider.java:1900)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common##16.0.1:31)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:6578)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:6133)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6043)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at android.app.ActivityThread.-wrap1(Unknown Source:0)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:105)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6944)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.measurement.AppMeasurement" on path: DexPathList[[zip file "/data/app/com.DefaultCompany.DefaultProject-KmqojsTcbAmAFIe0mAe1NA==/base.apk"],nativeLibraryDirectories=[/data/app/com.DefaultCompany.DefaultProject-KmqojsTcbAmAFIe0mAe1NA==/lib/arm, /data/app/com.DefaultCompany.DefaultProject-KmqojsTcbAmAFIe0mAe1NA==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]]
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
09-02 16:21:42.621 2968 2968 E AndroidRuntime: ... 27 more
This is from my game:
09-02 15:12:24.259 29752 29752 E AndroidRuntime: FATAL EXCEPTION: main
09-02 15:12:24.259 29752 29752 E AndroidRuntime: Process: com.DefaultCompany.DefaultProject, PID: 29752
09-02 15:12:24.259 29752 29752 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/Preconditions;
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common##16.0.1:1050)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:6578)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:6133)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6043)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at android.app.ActivityThread.-wrap1(Unknown Source:0)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:105)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6944)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.Preconditions" on path: DexPathList[[zip file "/data/app/com.DefaultCompany.DefaultProject-5mnEepmltZFu956Rz8DGDQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.DefaultCompany.DefaultProject-5mnEepmltZFu956Rz8DGDQ==/lib/arm, /data/app/com.DefaultCompany.DefaultProject-5mnEepmltZFu956Rz8DGDQ==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]]
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
09-02 15:12:24.259 29752 29752 E AndroidRuntime: ... 12 more
Thank you for the help!
I have Adobe Creative SDK Image Editor integrated into my App. Everything works fine, as far as editing is concerned, but when I try to load new supplies (Stickers, Effects, Frames, etc...) that are provided for free by Adobe, a SignUp/SignIn dialog opens up and the App crashes when either of the buttons is pressed. From the crash dump, below, it is evident that the crash happens in the Adobe logic, but maybe I don't have something configured properly. Has anyone had experience with this?
133654---------- beginning of crash
133683:09-09 11:22:44.339 4495 4495 E AndroidRuntime: FATAL EXCEPTION: main
133754-09-09 11:22:44.339 4495 4495 E AndroidRuntime: Process: com.floomit.floomit, PID: 4495
133843-09-09 11:22:44.339 4495 4495 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)' on a null object reference
134088-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1690)
134191-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1637)
134294-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at com.adobe.creativesdk.aviary.internal.account.IAidlAdobeBillingContentService$Stub$Proxy.login(IAidlAdobeBillingContentService.java:278)
134484-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at com.adobe.creativesdk.aviary.internal.account.AdobeBillingContentManager.login(AdobeBillingContentManager.java:314)
134653-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at com.adobe.creativesdk.aviary.internal.account.BillingContentFactory.requestLogin(BillingContentFactory.java:486)
134819-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at com.adobe.creativesdk.aviary.AdobeImageBillingService.requestLogin(AdobeImageBillingService.java:95)
134973-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at com.adobe.creativesdk.aviary.dialogs.LoginDialogFragment.onClick(LoginDialogFragment.java:281)
135121-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at android.view.View.performClick(View.java:5637)
135221-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:22429)
135326-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751)
135431-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
135536-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
135629-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6121)
135740-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
135840-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
135973-09-09 11:22:44.339 4495 4495 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
136087-09-09 11:22:44.341 4949 31347 W ActivityManager: Force finishing activity com.floomit.floomit/com.adobe.creativesdk.aviary.AdobeImageEditorActivity
Add following in the manifest
<provider
android:name=“com.adobe.creativesdk.aviary.internal.cds.CdsProvider”
android:authorities=“${applicationId}.CdsProvider”
android:exported=“false”
tools:replace=“android:authorities” />
My NDK game works well in Debug mode, but crashes in release with the following log on Nexus 7:
E dalvikvm: dlopen("/data/app-lib/com.js.pathoflight-1/libPathOfLight.so") failed: dlopen failed: cannot locate symbol "__gnu_thumb1_case_uqi" referenced by
"libPathOfLight.so"...
W dalvikvm: Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/js /pathoflight/JSNativeActivity;
W dalvikvm: Class init failed in newInstance call (Lcom/js/pathoflight/JSNativeActivity;)
D AndroidRuntime: Shutting down VM
W dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41b01700)
E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__gnu_thumb1_case_uqi" referenced by "libPathOfLight.so"...
E AndroidRuntime: at java.lang.Runtime.loadLibrary(Runtime.java:361)
E AndroidRuntime: at java.lang.System.loadLibrary(System.java:525)
E AndroidRuntime: at com.js.pathoflight.JSNativeActivity.<clinit>(JSNativeActivity.java:59)
E AndroidRuntime: at java.lang.Class.newInstanceImpl(Native Method)
E AndroidRuntime: at java.lang.Class.newInstance(Class.java:1130)
E AndroidRuntime: at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128)
E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
E AndroidRuntime: at android.app.ActivityThread.access$600(ActivityThread.java:141)
E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
E AndroidRuntime: at android.os.Looper.loop(Looper.java:137)
E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5103)
E AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:525)
E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
W ActivityManager: Force finishing activity com.js.pathoflight/.JSNativeActivity
I'll appreciate any suggestion.
While removing different parts of the code I found that the issue was in a 3rd party library I used.
I changed its usage from "gnustl_static" version (.a) to "gnustl_shared" (.so) one and the problem disappeared!