crash - android app works fine when testing in eclipse but crashes after downloading from app store -
crash - android app works fine when testing in eclipse but crashes after downloading from app store -
so created 3 apps schools in district first sec work fine 3rd 1 works fine when testing in eclipse vr , device crashes after downloading app store. what's causing problem? here error:
java.lang.runtimeexception: unable instantiate activity componentinfo{bi.project.rockridgesecondary/bi.project.sentinelsecondary.mainactivity}: java.lang.classnotfoundexception: didn't find class "bi.project.sentinelsecondary.mainactivity" on path: dexpathlist[[zip file "/data/app/bi.project.rockridgesecondary-1.apk"],nativelibrarydirectories=[/data/app-lib/bi.project.rockridgesecondary-1, /vendor/lib, /system/lib, /vendor/lib]] @ android.app.activitythread.performlaunchactivity(activitythread.java:2514) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2653) @ android.app.activitythread.access$800(activitythread.java:156) @ android.app.activitythread$h.handlemessage(activitythread.java:1355) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:157) @ android.app.activitythread.main(activitythread.java:5872) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:515) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:852) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:668) @ dalvik.system.nativestart.main(native method) caused by: java.lang.classnotfoundexception: didn't find class "bi.project.sentinelsecondary.mainactivity" on path: dexpathlist[[zip file "/data/app/bi.project.rockridgesecondary-1.apk"],nativelibrarydirectories=[/data/app-lib/bi.project.rockridgesecondary-1, /vendor/lib, /system/lib, /vendor/lib]] @ dalvik.system.basedexclassloader.findclass(basedexclassloader.java:56) @ java.lang.classloader.loadclass(classloader.java:497) @ java.lang.classloader.loadclass(classloader.java:457) @ android.app.instrumentation.newactivity(instrumentation.java:1079) @ android.app.activitythread.performlaunchactivity(activitythread.java:2505) ... 11 more
so seems causing error? , how link logcat on eclipse app since play store , not running eclipse? in advance!!
this manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="bi.project.rockridgesecondary" android:versioncode="2" android:versionname="1.1" > <uses-sdk android:minsdkversion="11" android:targetsdkversion="11" /> <uses-permission android:name="android.permission.camera"/>
<!-- changed largescreens false , added compatible, if error plz delete --> <supports-screens android:smallscreens="true" android:normalscreens="true" android:largescreens="true" android:xlargescreens="true" android:resizeable="true" android:anydensity="true" /> <application android:allowbackup="true" android:icon="@drawable/ic_launchercresttwo" android:label="@string/app_name" android:hardwareaccelerated="true" android:theme="@style/apptheme" > <activity android:configchanges="orientation|screensize" android:screenorientation="portrait" android:name="bi.project.sentinelsecondary.mainactivity" android:theme="@android:style/theme.translucent.notitlebar.fullscreen" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:configchanges="orientation|screensize" android:screenorientation="portrait" android:name="bi.project.sentinelsecondary.viewhwpic" android:theme="@android:style/theme.notitlebar.fullscreen" > </activity> <activity android:configchanges="orientation|screensize" android:screenorientation="portrait" android:name="bi.project.sentinelsecondary.horizontalpagerwithpagecontrolactivity" android:theme="@android:style/theme.notitlebar.fullscreen" > </activity> <activity android:configchanges="orientation|screensize" android:screenorientation="portrait" android:name="bi.project.sentinelsecondary.about" android:theme="@android:style/theme.notitlebar.fullscreen" > </activity> </application>
and build.gradle:
apply plugin: 'android' dependencies { compile filetree(dir: 'libs', include: '*.jar') compile project(':slidingmenutuoriallib') } android { compilesdkversion 19 buildtoolsversion "19.0.3" sourcesets { main { manifest.srcfile 'androidmanifest.xml' java.srcdirs = ['src'] resources.srcdirs = ['src'] aidl.srcdirs = ['src'] renderscript.srcdirs = ['src'] res.srcdirs = ['res'] assets.srcdirs = ['assets'] } // move tests tests/java, tests/res, etc... instrumenttest.setroot('tests') // move build types build-types/<type> // instance, build-types/debug/java, build-types/debug/androidmanifest.xml, ... // moves them out of them default location under src/<type>/... // conflict src/ beingness used main source set. // adding new build types or product flavors should accompanied // similar customization. debug.setroot('build-types/debug') release.setroot('build-types/release') } }
android crash
Comments
Post a Comment