App crashes after renaming it - android

I renamed my Project in eclipse I tried to run my app on my device. but ever since I am getting Unfortunately, App has stopped. I manually edited the AndroidManifest.xml to check if the file paths are correct as AndroidManifest doesn't seem to reflect the changes after renaming project, I would be grateful if you help. Here is the logcat
02-09 11:38:43.872: D/AndroidRuntime(26838): Shutting down VM
02-09 11:38:43.880: E/AndroidRuntime(26838): FATAL EXCEPTION: main
02-09 11:38:43.880: E/AndroidRuntime(26838): Process: com.ummahtalk.community, PID: 26838
02-09 11:38:43.880: E/AndroidRuntime(26838): java.lang.RuntimeException: Unable to instantiate application com.ummahtalk.community.SpikaApp: java.lang.ClassNotFoundException: Didn't find class "com.ummahtalk.community.SpikaApp" on path: DexPathList[[zip file "/data/app/com.ummahtalk.community-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.LoadedApk.makeApplication(LoadedApk.java:563)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4491)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.ActivityThread.access$1500(ActivityThread.java:144)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.os.Handler.dispatchMessage(Handler.java:102)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.os.Looper.loop(Looper.java:135)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.ActivityThread.main(ActivityThread.java:5221)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.reflect.Method.invoke(Native Method)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.reflect.Method.invoke(Method.java:372)
02-09 11:38:43.880: E/AndroidRuntime(26838): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
02-09 11:38:43.880: E/AndroidRuntime(26838): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
02-09 11:38:43.880: E/AndroidRuntime(26838): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.ummahtalk.community.SpikaApp" on path: DexPathList[[zip file "/data/app/com.ummahtalk.community-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
02-09 11:38:43.880: E/AndroidRuntime(26838): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.Instrumentation.newApplication(Instrumentation.java:979)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.LoadedApk.makeApplication(LoadedApk.java:558)
02-09 11:38:43.880: E/AndroidRuntime(26838): ... 10 more
02-09 11:38:43.880: E/AndroidRuntime(26838): Suppressed: java.lang.ClassNotFoundException: com.ummahtalk.community.SpikaApp
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.Class.classForName(Native Method)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
02-09 11:38:43.880: E/AndroidRuntime(26838): ... 13 more
02-09 11:38:43.880: E/AndroidRuntime(26838): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
02-09 11:38:53.991: D/AndroidRuntime(27142): Shutting down VM
02-09 11:38:53.993: E/AndroidRuntime(27142): FATAL EXCEPTION: main
02-09 11:38:53.993: E/AndroidRuntime(27142): Process: com.ummahtalk.community, PID: 27142
02-09 11:38:53.993: E/AndroidRuntime(27142): java.lang.RuntimeException: Unable to instantiate application com.ummahtalk.community.SpikaApp: java.lang.ClassNotFoundException: Didn't find class "com.ummahtalk.community.SpikaApp" on path: DexPathList[[zip file "/data/app/com.ummahtalk.community-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.LoadedApk.makeApplication(LoadedApk.java:563)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4491)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.ActivityThread.access$1500(ActivityThread.java:144)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.os.Handler.dispatchMessage(Handler.java:102)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.os.Looper.loop(Looper.java:135)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.ActivityThread.main(ActivityThread.java:5221)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.reflect.Method.invoke(Native Method)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.reflect.Method.invoke(Method.java:372)
02-09 11:38:53.993: E/AndroidRuntime(27142): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
02-09 11:38:53.993: E/AndroidRuntime(27142): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
02-09 11:38:53.993: E/AndroidRuntime(27142): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.ummahtalk.community.SpikaApp" on path: DexPathList[[zip file "/data/app/com.ummahtalk.community-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
02-09 11:38:53.993: E/AndroidRuntime(27142): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.Instrumentation.newApplication(Instrumentation.java:979)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.LoadedApk.makeApplication(LoadedApk.java:558)
02-09 11:38:53.993: E/AndroidRuntime(27142): ... 10 more
02-09 11:38:53.993: E/AndroidRuntime(27142): Suppressed: java.lang.ClassNotFoundException: com.ummahtalk.community.SpikaApp
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.Class.classForName(Native Method)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
02-09 11:38:53.993: E/AndroidRuntime(27142): ... 13 more
02-09 11:38:53.993: E/AndroidRuntime(27142): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
02-09 11:39:54.371: I/Process(27142): Sending signal. PID: 27142 SIG: 9

I had renamed the project using Android Tools>>Rename Application package but Then I figured out everything was not renamed correctly then I tried doing Refactor>Rename and It solved it

Just faced the exact problem. I tried all the solutions above non worked.
I got it fixed by exiting android studio, copying the entire project folder to a new location, launching android studio and opening the project from the new location.

Related

how can I resolve this Logcat error

06-12 04:16:20.100 12243-12243/jaffri.sszj.dpcl E/AndroidRuntime: FATAL EXCEPTION: main
Process: jaffri.sszj.dpcl, PID: 12243
java.lang.RuntimeException: Unable to start activity ComponentInfo{jaffri.sszj.dpcl/jaffri.sszj.dpcl.MainActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class android.support.v7.app.AlertController.RecycleListView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2202)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2252)
at android.app.ActivityThread.access$800(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1200)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class android.support.v7.app.AlertController.RecycleListView
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
at jaffri.sszj.dpcl.MainActivity.onCreate(MainActivity.java:28)
at android.app.Activity.performCreate(Activity.java:5275)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2166)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2252) 
at android.app.ActivityThread.access$800(ActivityThread.java:139) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1200) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5103) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606) 
at dalvik.system.NativeStart.main(Native Method) 
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.AlertController.RecycleListView" on path: DexPathList[[zip file "/data/app/jaffri.sszj.dpcl-1.apk", zip file "/data/data/jaffri.sszj.dpcl/code_cache/secondary-dexes/jaffri.sszj.dpcl-1.apk.classes2.zip"],nativeLibraryDirectories=[/data/app-lib/jaffri.sszj.dpcl-1, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at android.view.LayoutInflater.createView(LayoutInflater.java:559)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287) 
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) 
at jaffri.sszj.dpcl.MainActivity.onCreate(MainActivity.java:28) 
at android.app.Activity.performCreate(Activity.java:5275) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2166) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2252) 
at android.app.ActivityThread.access$800(ActivityThread.java:139) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1200) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5103) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606) 
at dalvik.system.NativeStart.main(Native Method) 
06-12 04:16:23.353 12243-12250/jaffri.sszj.dpcl I/dalvikvm: Total arena pages for JIT: 11
Total arena pages for JIT: 12
Total arena pages for JIT: 13
Total arena pages for JIT: 14

Unable to get provider com.google.firebase.provider.FirebaseInitProvider?

How to solve this error ?
Android studio 2.3.3
Ubuntu 14.04 LTS
androidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/data/app/com.midhilaj.ssfnewsapp-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.midhilaj.ssfnewsapp-1, /vendor/lib, /system/lib]]
at android.app.ActivityThread.installProvider(ActivityThread.java:5121)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4681)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4621)
at android.app.ActivityThread.access$1300(ActivityThread.java:165)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1433)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5391)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/data/app/com.midhilaj.ssfnewsapp-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.midhilaj.ssfnewsapp-1, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.ActivityThread.installProvider(ActivityThread.java:5106)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4681) 
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4621) 
at android.app.ActivityThread.access$1300(ActivityThread.java:165) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1433) 
at android.os.Handler.dispatchMessage(Handler.java:107) 
at android.os.Looper.loop(Looper.java:194) 
at android.app.ActivityThread.main(ActivityThread.java:5391) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:525) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) 
at dalvik.system.NativeStart.main(Native Method) 
First register your app on firebase console and follow the steps mentioned there remember to put the google-service.json file parallel to the app folder in your project.

app is died, Occur ClassNotFoundException on android

when I run my app, app died and occur classNotFoundException.
perhaps, gradle problem ?
compileSdkVersion =22
buildToolsVersion =21.1.2
minSdkVersion =19
targetSdkVersion =22
I think code problem.
settings, or gradle problem.
please advice for me.
logcat
FATAL EXCEPTION: main
Process: kr.co.iosystem.blackeyeonandroid, PID: 27947
java.lang.RuntimeException: Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication: java.lang.ClassNotFoundException: Didn't find class "com.android.tools.fd.runtime.BootstrapApplication" on path: DexPathList[[zip file "/data/app/kr.co.iosystem.blackeyeonandroid-1.apk"],nativeLibraryDirectories=[/data/app-lib/kr.co.iosystem.blackeyeonandroid-1, /system/lib, /system/lib/arm]]
at android.app.LoadedApk.makeApplication(LoadedApk.java:507)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4301)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.tools.fd.runtime.BootstrapApplication" on path: DexPathList[[zip file "/data/app/kr.co.iosystem.blackeyeonandroid-1.apk"],nativeLibraryDirectories=[/data/app-lib/kr.co.iosystem.blackeyeonandroid-1, /system/lib, /system/lib/arm]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at android.app.Instrumentation.newApplication(Instrumentation.java:975)
at android.app.LoadedApk.makeApplication(LoadedApk.java:502)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4301) 
at android.app.ActivityThread.access$1500(ActivityThread.java:135) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5001) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 
at dalvik.system.NativeStart.main(Native Method) 

Android studio on windows 7 error :UNEXPECTED TOP-LEVEL EXCEPTION

the error occurred when imported the osmand project :
Error:Execution failed for task ':OsmAnd:preDexFreeLegacyArmv5Debug'.
com.android.ide.common.internal.LoggedErrorException: Failed to run command:
E:\Android\sdk\build-tools\21.1.2\dx.bat --dex --force-jumbo --output E:\Android_test_projects\Osmand-master2\Osmand-master\OsmAnd\build\intermediates\pre-dexed\freelegacyarmv5\debug\OsmAnd-java-android-9c283cd307dbfef07359ccbde68a116b21ff0b4f.jar E:\Android_test_projects\Osmand-master2\Osmand-master\OsmAnd-java\build\libs\OsmAnd-java-android.jar
Error Code:
1
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)
at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)
at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
at com.android.dx.command.dexer.Main.processClass(Main.java:704)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
at com.android.dx.command.dexer.Main.access$300(Main.java:83)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:632)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)
at com.android.dx.command.dexer.Main.run(Main.java:246)
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.command.Main.main(Main.java:106)
...while parsing com/google/protobuf/AbstractMessage$1.class
1 error; aborting
the cause of above error was java 1.8. after changing it to 1.7 i got this run time error
2-11 10:28:55.160 26327-26327/net.osmand V/Zygote﹕ Switching descriptor 34 to /dev/null
02-11 10:28:55.160 26327-26327/net.osmand V/Zygote﹕ Switching descriptor 9 to /dev/null
02-11 10:28:55.160 26327-26327/net.osmand D/dalvikvm﹕ Late-enabling CheckJNI
02-11 10:28:55.200 26327-26327/net.osmand D/ActivityThread﹕ handleBindApplication:net.osmand
02-11 10:28:55.200 26327-26327/net.osmand D/ActivityThread﹕ setTargetHeapUtilization:0.75
02-11 10:28:55.200 26327-26327/net.osmand D/ActivityThread﹕ setTargetHeapMinFree:2097152
02-11 10:28:55.260 26327-26327/net.osmand I/net.osmand﹕ ResourceManager Tiles to load in memory : 162.0
02-11 10:28:55.350 26327-26327/net.osmand D/AndroidRuntime﹕ Shutting down VM
02-11 10:28:55.350 26327-26327/net.osmand W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41653db8)
02-11 10:28:55.350 26327-26327/net.osmand E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: net.osmand, PID: 26327
java.lang.RuntimeException: Unable to create application net.osmand.plus.OsmandApplication: java.lang.IllegalStateException: java.lang.IllegalArgumentException: is == null
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4476)
at android.app.ActivityThread.access$1500(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5146)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: java.lang.IllegalArgumentException: is == null
at net.osmand.router.RoutingConfiguration.getDefault(RoutingConfiguration.java:171)
at net.osmand.plus.helpers.AvoidSpecificRoads.getBuilder(AvoidSpecificRoads.java:44)
at net.osmand.plus.helpers.AvoidSpecificRoads.<init>(AvoidSpecificRoads.java:38)
at net.osmand.plus.OsmandApplication.onCreate(OsmandApplication.java:165)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4473)
            at android.app.ActivityThread.access$1500(ActivityThread.java:144)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5146)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
            at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: is == null
at org.kxml2.io.KXmlParser.setInput(KXmlParser.java:1625)
at net.osmand.router.RoutingConfiguration.parseFromInputStream(RoutingConfiguration.java:184)
at net.osmand.router.RoutingConfiguration.getDefault(RoutingConfiguration.java:169)
            at net.osmand.plus.helpers.AvoidSpecificRoads.getBuilder(AvoidSpecificRoads.java:44)
            at net.osmand.plus.helpers.AvoidSpecificRoads.<init>(AvoidSpecificRoads.java:38)
            at net.osmand.plus.OsmandApplication.onCreate(OsmandApplication.java:165)
            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4473)
            at android.app.ActivityThread.access$1500(ActivityThread.java:144)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5146)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
            at dalvik.system.NativeStart.main(Native Method)
02-11 10:29:42.570 26327-26334/net.osmand D/dalvikvm﹕ null clazz in OP_INSTANCE_OF, single-stepping
02-11 10:33:27.190 26327-26327/net.osmand I/Process﹕ Sending signal. PID: 26327 SIG: 9
02-11 10:34:10.670 26873-26873/net.osmand D/ActivityThread﹕ handleBindApplication:net.osmand
02-11 10:34:10.670 26873-26873/net.osmand D/ActivityThread﹕ setTargetHeapUtilization:0.75
02-11 10:34:10.670 26873-26873/net.osmand D/ActivityThread﹕ setTargetHeapMinFree:2097152
02-11 10:34:10.740 26873-26873/net.osmand I/net.osmand﹕ ResourceManager Tiles to load in memory : 162.0
02-11 10:34:10.840 26873-26873/net.osmand D/AndroidRuntime﹕ Shutting down VM
02-11 10:34:10.840 26873-26873/net.osmand W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41653db8)
02-11 10:34:10.840 26873-26873/net.osmand E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: net.osmand, PID: 26873
java.lang.RuntimeException: Unable to create application net.osmand.plus.OsmandApplication: java.lang.IllegalStateException: java.lang.IllegalArgumentException: is == null
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4476)
at android.app.ActivityThread.access$1500(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5146)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: java.lang.IllegalArgumentException: is == null
at net.osmand.router.RoutingConfiguration.getDefault(RoutingConfiguration.java:171)
at net.osmand.plus.helpers.AvoidSpecificRoads.getBuilder(AvoidSpecificRoads.java:44)
at net.osmand.plus.helpers.AvoidSpecificRoads.<init>(AvoidSpecificRoads.java:38)
at net.osmand.plus.OsmandApplication.onCreate(OsmandApplication.java:165)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4473)
            at android.app.ActivityThread.access$1500(ActivityThread.java:144)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5146)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
            at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: is == null
at org.kxml2.io.KXmlParser.setInput(KXmlParser.java:1625)
at net.osmand.router.RoutingConfiguration.parseFromInputStream(RoutingConfiguration.java:184)
at net.osmand.router.RoutingConfiguration.getDefault(RoutingConfiguration.java:169)
            at net.osmand.plus.helpers.AvoidSpecificRoads.getBuilder(AvoidSpecificRoads.java:44)
            at net.osmand.plus.helpers.AvoidSpecificRoads.<init>(AvoidSpecificRoads.java:38)
            at net.osmand.plus.OsmandApplication.onCreate(OsmandApplication.java:165)
            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4473)
            at android.app.ActivityThread.access$1500(ActivityThread.java:144)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5146)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
            at dalvik.system.NativeStart.main(Native Method)
02-11 10:34:58.010 26873-26880/net.osmand D/dalvikvm﹕ null clazz in OP_INSTANCE_OF, single-stepping
I`ve got same issue, i moved all the .java class files to the root package and all errors were gone...

java.lang.NoClassDefFoundError: com.google.android.gms.common.AccountPicker

Ok, I have been losing a lot of sleep over this, I can not seem to find what the issue is.
I am trying to integrate google drive with a big application I am working on with a team. .
Here is what logcat spits out:
02-09 10:13:40.979: E/AndroidRuntime(9768): java.lang.NoClassDefFoundError: com.google.android.gms.common.AccountPicker
02-09 10:13:40.979: E/AndroidRuntime(9768): at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.newChooseAccountIntent(GoogleAccountCredential.java:171)
02-09 10:13:40.979: E/AndroidRuntime(9768): at graef.mobile.activities.DriveHandler.onCreate(DriveHandler.java:36)
02-09 10:13:40.979: E/AndroidRuntime(9768): at android.app.Activity.performCreate(Activity.java:4465)
02-09 10:13:40.979: E/AndroidRuntime(9768): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
02-09 10:13:40.979: E/AndroidRuntime(9768): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2033)
02-09 10:13:40.979: E/AndroidRuntime(9768): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
02-09 10:13:40.979: E/AndroidRuntime(9768): at android.app.ActivityThread.access$600(ActivityThread.java:132)
02-09 10:13:40.979: E/AndroidRuntime(9768): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1157)
02-09 10:13:40.979: E/AndroidRuntime(9768): at android.os.Handler.dispatchMessage(Handler.java:99)
02-09 10:13:40.979: E/AndroidRuntime(9768): at android.os.Looper.loop(Looper.java:137)
02-09 10:13:40.979: E/AndroidRuntime(9768): at android.app.ActivityThread.main(ActivityThread.java:4575)
02-09 10:13:40.979: E/AndroidRuntime(9768): at java.lang.reflect.Method.invokeNative(Native Method)
02-09 10:13:40.979: E/AndroidRuntime(9768): at java.lang.reflect.Method.invoke(Method.java:511)
02-09 10:13:40.979: E/AndroidRuntime(9768): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
02-09 10:13:40.979: E/AndroidRuntime(9768): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
02-09 10:13:40.979: E/AndroidRuntime(9768): at dalvik.system.NativeStart.main(Native Method)
I have all the libraries I need, I have also gotten a few Multiple dex errors. so I have nothing in my libs folder because I found that as a solution to that problem because of double jars in /libs and /bin/dexedLibs
Any help would much be appreciated
Let me know what other information I need to provide.
I needed to make sure I had google play service imported and checked in order and export
I also had same problem, until I add:
import com.google.android.gms.common.AccountPicker;
in my activity.java file. Hope it works for your problem too.

Categories

Resources