ClassNotFoundException while implementing SupportKit in android - android

I am trying to implement chat service with users using SupportKit library in my android app. I followed all steps mentioned here in eclipse to implement this feature. I am using SupportKit 1.0.0 version in Eclipse. But everytime I try to run it I am getting ClassNotFoundException on io.supportkit.ui.ConversationActivity.
Log:
09-02 15:15:21.632: E/AndroidRuntime(9122): FATAL EXCEPTION: main
09-02 15:15:21.632: E/AndroidRuntime(9122): Process: com.example.saplesupport, PID: 9122
09-02 15:15:21.632: E/AndroidRuntime(9122): java.lang.NoClassDefFoundError: Failed resolution of: Lio/supportkit/ui/ConversationActivity;
09-02 15:15:21.632: E/AndroidRuntime(9122): at com.example.saplesupport.MainActivity$1.onClick(MainActivity.java:23)
09-02 15:15:21.632: E/AndroidRuntime(9122): at android.view.View.performClick(View.java:4759)
09-02 15:15:21.632: E/AndroidRuntime(9122): at android.view.View$PerformClick.run(View.java:19770)
09-02 15:15:21.632: E/AndroidRuntime(9122): at android.os.Handler.handleCallback(Handler.java:739)
09-02 15:15:21.632: E/AndroidRuntime(9122): at android.os.Handler.dispatchMessage(Handler.java:95)
09-02 15:15:21.632: E/AndroidRuntime(9122): at android.os.Looper.loop(Looper.java:135)
09-02 15:15:21.632: E/AndroidRuntime(9122): at android.app.ActivityThread.main(ActivityThread.java:5232)
09-02 15:15:21.632: E/AndroidRuntime(9122): at java.lang.reflect.Method.invoke(Native Method)
09-02 15:15:21.632: E/AndroidRuntime(9122): at java.lang.reflect.Method.invoke(Method.java:372)
09-02 15:15:21.632: E/AndroidRuntime(9122): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
09-02 15:15:21.632: E/AndroidRuntime(9122): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
09-02 15:15:21.632: E/AndroidRuntime(9122): Caused by: java.lang.ClassNotFoundException: Didn't find class "io.supportkit.ui.ConversationActivity" on path: DexPathList[[zip file "/data/app/com.example.saplesupport-1/base.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
09-02 15:15:21.632: E/AndroidRuntime(9122): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
09-02 15:15:21.632: E/AndroidRuntime(9122): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
09-02 15:15:21.632: E/AndroidRuntime(9122): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
09-02 15:15:21.632: E/AndroidRuntime(9122): ... 11 more
09-02 15:15:21.632: E/AndroidRuntime(9122): Suppressed: java.lang.NoClassDefFoundError: io.supportkit.ui.ConversationActivity
09-02 15:15:21.632: E/AndroidRuntime(9122): at dalvik.system.DexFile.defineClassNative(Native Method)
09-02 15:15:21.632: E/AndroidRuntime(9122): at dalvik.system.DexFile.defineClass(DexFile.java:226)
09-02 15:15:21.632: E/AndroidRuntime(9122): at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
09-02 15:15:21.632: E/AndroidRuntime(9122): at dalvik.system.DexPathList.findClass(DexPathList.java:321)
09-02 15:15:21.632: E/AndroidRuntime(9122): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
09-02 15:15:21.632: E/AndroidRuntime(9122): ... 13 more
09-02 15:15:21.632: E/AndroidRuntime(9122): Suppressed: java.lang.ClassNotFoundException: io.supportkit.ui.ConversationActivity
09-02 15:15:21.632: E/AndroidRuntime(9122): at java.lang.Class.classForName(Native Method)
09-02 15:15:21.632: E/AndroidRuntime(9122): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
09-02 15:15:21.632: E/AndroidRuntime(9122): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
09-02 15:15:21.632: E/AndroidRuntime(9122): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
09-02 15:15:21.632: E/AndroidRuntime(9122): ... 12 more
09-02 15:15:21.632: E/AndroidRuntime(9122): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

Related

java.lang.UnsatisfiedLinkError whilw using NativeLib using jniLib NeptuneLiteApi

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.gtech.edcdemo, PID: 7655
java.lang.UnsatisfiedLinkError: dalvik.system.DexClassLoader[DexPathList[[dex file "/data/user/0/com.gtech.edcdemo/files/nepcore.dex"],nativeLibraryDirectories=[/data/app/com.gtech.edcdemo-2/lib/arm, /data/resource/lib, /vendor/lib, /system/lib]]] couldn't find "libDeviceConfig.so"
at java.lang.Runtime.loadLibrary(Runtime.java:367)
at java.lang.System.loadLibrary(System.java:1076)
at com.pax.dal.impl.utils.DeviceConfig.<clinit>(SourceFile:22)
at com.pax.dal.impl.utils.ServiceUtils.getDeviceEnable(SourceFile:89)
at com.pax.dal.impl.utils.ServiceUtils.isModuleEnable(SourceFile:101)
at com.pax.dal.impl.E.u(SourceFile:82)
at com.pax.dal.impl.E.open(SourceFile:89)
at com.gtech.edcdemo.MainActivity.onCreate(MainActivity.kt:20)
at android.app.Activity.performCreate(Activity.java:6251)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2370)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2477)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1345)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
I/Process: Sending signal. PID: 7655 SIG: 9
Using JniLibs in order to add NativeLib in Android studio while

Firebase-demo/Analytics NoClassDefFoundError exception when built with Gradle

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!

while updating app from playstore i am getting the error "Caused by: java.lang.ClassNotFoundException: android.net.ZeroBalanceHelper"

while updating app from playstore I'm getting the error..
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available 09-02 17:10:03.586 11866-12008/? W/System.err: java.lang.ClassNotFoundException: android.net.ZeroBalanceHelper 09-02 17:10:03.586 11866-12008/? W/System.err: at java.lang.Class.classForName(Native Method) 09-02 17:10:03.587 11866-12008/? W/System.err: at java.lang.Class.forName(Class.java:324) 09-02 17:10:03.587 11866-12008/? W/System.err: at java.lang.Class.forName(Class.java:285) 09-02 17:10:03.587 11866-12008/? W/System.err: at
com.android.okhttp.internal.http.ZeroBalanceHelperClass.getFeatureFlagValue(ZeroBalanceHelperClass.java:39)
09-02 17:10:03.587 11866-12008/? W/System.err: at
com.android.okhttp.internal.http.HttpEngine.followUpRequest(HttpEngine.java:1090)
09-02 17:10:03.588 11866-12008/? W/System.err: at
com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:393)
09-02 17:10:03.588 11866-12008/? W/System.err: at
com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:501)
09-02 17:10:03.588 11866-12008/? W/System.err: at
com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
09-02 17:10:03.588 11866-12008/? W/System.err: at
com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
09-02 17:10:03.588 11866-12008/? W/System.err: at la.a(:com.google.android.gms.DynamiteModulesA:193) 09-02 17:10:03.588 11866-12008/? W/System.err: at lb.a(:com.google.android.gms.DynamiteModulesA:151) 09-02 17:10:03.588 11866-12008/? W/System.err: at jt.c(:com.google.android.gms.DynamiteModulesA:608) 09-02 17:10:03.588 11866-12008/? W/System.err: at lm.run(:com.google.android.gms.DynamiteModulesA:242) 09-02 17:10:03.588 11866-12008/? W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423) 09-02 17:10:03.588 11866-12008/? W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 09-02 17:10:03.588 11866-12008/? W/System.err: at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
09-02 17:10:03.588 11866-12008/? W/System.err: at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
09-02 17:10:03.588 11866-12008/? W/System.err: at java.lang.Thread.run(Thread.java:818) 09-02 17:10:03.588 11866-12008/? W/System.err: Caused by: java.lang.ClassNotFoundException: android.net.ZeroBalanceHelper 09-02 17:10:03.592 11866-12008/? W/System.err: at java.lang.Class.classForName(Native Method) 09-02 17:10:03.592 11866-12008/? W/System.err: at java.lang.BootClassLoader.findClass(ClassLoader.java:781) 09-02 17:10:03.592 11866-12008/? W/System.err: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) 09-02 17:10:03.592 11866-12008/? W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:469) 09-02 17:10:03.592 11866-12008/? W/System.err: ... 18 more
app doesn't run after this error, any help will be highly appreciated.

Gradle plugin 2.1.0: app crashes on launch

When I run the app the application crash.
I'm using the new android plugin 2.1.0
Failed to create directory /data/data/ric.es.pruebavideo/files/instant-run/dex
05-05
Couldn't create dex code folder
05-05 22:13:05.024 28257-28257/ric.es.pruebavideo D/AndroidRuntime: Shutting down VM
05-05 22:13:05.026 28257-28257/ric.es.pruebavideo E/AndroidRuntime: FATAL EXCEPTION: main
Process: ric.es.pruebavideo, PID: 28257
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{ric.es.pruebavideo/ric.es.pruebavideo.VideoRActivity}: java.lang.ClassNotFoundException: Didn't find class "ric.es.pruebavideo.VideoRActivity" on path: DexPathList[[zip file "/data/app/ric.es.pruebavideo-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2236)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.ClassNotFoundException: Didn't find class "ric.es.pruebavideo.VideoRActivity" on path: DexPathList[[zip file "/data/app/ric.es.pruebavideo-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at android.app.Instrumentation.newActivity(Instrumentation.java:1066)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2226)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) 
at android.app.ActivityThread.access$800(ActivityThread.java:151) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5254) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) 
Suppressed: java.lang.ClassNotFoundException: ric.es.pruebavideo.VideoRActivity
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 13 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
05-05 22:18:21.137 29791-29791/ric.es.pruebavideo D/Mobility: Selected camera resolution: 1280 x 720
05-05 22:18:21.210 29791-29791/ric.es.pruebavideo I/Choreographer: Skipped 30 frames! The application may be doing too much work on its main thread.
Downgrading grudle to 2.0.0 worked for me

pointing the error message in the following log snippet

Ok below here is what my log generates when I try to run my application . The application fails unexpectedly and does not even start
09-02 04:28:51.856: D/dalvikvm(781): GC_FOR_ALLOC freed 66K, 7% free 2542K/2728K, paused 51ms, total 66ms
09-02 04:28:51.866: I/dalvikvm-heap(781): Grow heap (frag case) to 3.181MB for 614500-byte allocation
09-02 04:28:51.936: D/dalvikvm(781): GC_FOR_ALLOC freed <1K, 6% free 3142K/3332K, paused 67ms, total 67ms
09-02 04:28:52.406: W/SoundPool(781): sample 1 not READY
09-02 04:28:53.116: D/gralloc_goldfish(781): Emulator without GPU emulation detected.
09-02 04:28:53.376: I/Choreographer(781): Skipped 33 frames! The application may be doing too much work on its main thread.
09-02 04:29:22.606: E/AudioTrack(781): Could not get audio output for stream type 3
09-02 04:29:22.606: E/SoundPool(781): Error creating AudioTrack
09-02 04:29:22.756: D/dalvikvm(781): GC_FOR_ALLOC freed 30K, 5% free 3523K/3672K, paused 19ms, total 21ms
09-02 04:29:22.756: I/dalvikvm-heap(781): Grow heap (frag case) to 4.159MB for 635812-byte allocation
09-02 04:29:22.856: D/dalvikvm(781): GC_FOR_ALLOC freed 1K, 4% free 4143K/4296K, paused 97ms, total 97ms
09-02 04:29:22.966: I/Choreographer(781): Skipped 91 frames! The application may be doing too much work on its main thread.
09-02 04:29:23.206: I/Choreographer(781): Skipped 55 frames! The application may be doing too much work on its main thread.
09-02 04:29:23.375: I/Choreographer(781): Skipped 35 frames! The application may be doing too much work on its main thread.
09-02 04:29:23.776: I/Choreographer(781): Skipped 79 frames! The application may be doing too much work on its main thread.
09-02 04:29:28.016: D/dalvikvm(781): GC_FOR_ALLOC freed 108K, 5% free 4436K/4664K, paused 111ms, total 133ms
09-02 04:29:28.045: I/dalvikvm-heap(781): Grow heap (frag case) to 5.030MB for 614500-byte allocation
09-02 04:29:28.096: D/dalvikvm(781): GC_FOR_ALLOC freed 1K, 5% free 5034K/5268K, paused 55ms, total 56ms
09-02 04:29:28.235: W/SoundPool(781): sample 1 not READY
09-02 04:29:28.785: I/Choreographer(781): Skipped 50 frames! The application may be doing too much work on its main thread.
09-02 04:29:31.626: E/AudioTrack(781): Could not get audio output for stream type 3
09-02 04:29:31.626: E/SoundPool(781): Error creating AudioTrack
09-02 04:29:31.746: E/SlaveBlueTooth(781): +++ ON CREATE +++
09-02 04:29:31.766: W/System.err(781): java.io.IOException: open failed: EROFS (Read-only file system)
09-02 04:29:31.776: W/System.err(781): at java.io.File.createNewFile(File.java:948)
09-02 04:29:31.785: W/System.err(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:118)
09-02 04:29:31.796: W/System.err(781): at android.app.Activity.performCreate(Activity.java:5133)
09-02 04:29:31.796: W/System.err(781): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
09-02 04:29:31.796: W/System.err(781): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
09-02 04:29:31.816: W/System.err(781): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
09-02 04:29:31.816: W/System.err(781): at android.app.ActivityThread.access$600(ActivityThread.java:141)
09-02 04:29:31.816: W/System.err(781): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
09-02 04:29:31.826: W/System.err(781): at android.os.Handler.dispatchMessage(Handler.java:99)
09-02 04:29:31.826: W/System.err(781): at android.os.Looper.loop(Looper.java:137)
09-02 04:29:31.826: W/System.err(781): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-02 04:29:31.836: W/System.err(781): at java.lang.reflect.Method.invokeNative(Native Method)
09-02 04:29:31.836: W/System.err(781): at java.lang.reflect.Method.invoke(Method.java:525)
09-02 04:29:31.846: W/System.err(781): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-02 04:29:31.846: W/System.err(781): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-02 04:29:31.856: W/System.err(781): at dalvik.system.NativeStart.main(Native Method)
09-02 04:29:31.856: W/System.err(781): Caused by: libcore.io.ErrnoException: open failed: EROFS (Read-only file system)
09-02 04:29:31.876: W/System.err(781): at libcore.io.Posix.open(Native Method)
09-02 04:29:31.886: W/System.err(781): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
09-02 04:29:31.886: W/System.err(781): at java.io.File.createNewFile(File.java:941)
09-02 04:29:31.896: W/System.err(781): ... 15 more
09-02 04:29:32.016: D/AndroidRuntime(781): Shutting down VM
09-02 04:29:32.016: W/dalvikvm(781): threadid=1: thread exiting with uncaught exception (group=0x41465700)
09-02 04:29:32.066: E/AndroidRuntime(781): FATAL EXCEPTION: main
09-02 04:29:32.066: E/AndroidRuntime(781): java.lang.RuntimeException: Unable to start activity ComponentInfo{hellog.diwesh.NugaBest/helog.diwesh.NugaBest.BTSmartSlavemodule}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.access$600(ActivityThread.java:141)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.os.Handler.dispatchMessage(Handler.java:99)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.os.Looper.loop(Looper.java:137)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-02 04:29:32.066: E/AndroidRuntime(781): at java.lang.reflect.Method.invokeNative(Native Method)
09-02 04:29:32.066: E/AndroidRuntime(781): at java.lang.reflect.Method.invoke(Method.java:525)
09-02 04:29:32.066: E/AndroidRuntime(781): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-02 04:29:32.066: E/AndroidRuntime(781): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-02 04:29:32.066: E/AndroidRuntime(781): at dalvik.system.NativeStart.main(Native Method)
09-02 04:29:32.066: E/AndroidRuntime(781): Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
09-02 04:29:32.066: E/AndroidRuntime(781): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:226)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.Activity.requestWindowFeature(Activity.java:3264)
09-02 04:29:32.066: E/AndroidRuntime(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:141)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.Activity.performCreate(Activity.java:5133)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
09-02 04:29:32.066: E/AndroidRuntime(781): ... 11 more
This is the error from your LogCat :
FATAL EXCEPTION: main
09-02 04:29:32.066: E/AndroidRuntime(781): java.lang.RuntimeException: Unable to start activity ComponentInfo{hellog.diwesh.NugaBest/helog.diwesh.NugaBest.BTSmartSlavemodule}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
Multiple issues here:
09-02 04:29:31.766: W/System.err(781): java.io.IOException: open failed: EROFS (Read-only file system)
09-02 04:29:31.776: W/System.err(781): at java.io.File.createNewFile(File.java:948)
09-02 04:29:31.785: W/System.err(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:118)
In BTSmartSlavemodule.java line 118 you're trying to create a new file on a read-only file system.
09-02 04:29:32.066: E/AndroidRuntime(781): Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
09-02 04:29:32.066: E/AndroidRuntime(781): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:226)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.Activity.requestWindowFeature(Activity.java:3264)
09-02 04:29:32.066: E/AndroidRuntime(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:141)
On line 141 of the same file you're trying to call requestWindowFeature() after calling setContentView(). You need to set window features before setContentView().
You call requestFeature() not in right place... try to call this method before setContentView(R.layout.activity)
The cause of this error is :
09-02 04:29:32.066: E/AndroidRuntime(781): Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
And this cause happened at :
09-02 04:29:31.785: W/System.err(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:118)
Where you put code .requestWindowFeature(). To avoid this cause you must put this code before setContentView(R.layout.your_layout);
I think you are trying to create file on sdcard but you don't have specified permission to write external storage in manifest file
Add this line to manifest.xml file
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Categories

Resources