android - My app gets stopped unfortunately when I use Sugar ORM -
using these configurations did add sugar orm project, application stopped unfortunately error :
fatal exception: main process: gigacycle.geoaudiotag, pid: 22760 java.lang.runtimeexception: unable instantiate application com.orm.sugarapp: java.lang.classnotfoundexception: didn't find class "com.orm.sugarapp" on path: dexpathlist[[zip file "/data/app/gigacycle.geoaudiotag-1/base.apk"],nativelibrarydirectories=[/data/app/gigacycle.geoaudiotag-1/lib/arm, /vendor/lib, /system/lib]] @ android.app.loadedapk.makeapplication(loadedapk.java:676) @ android.app.activitythread.handlebindapplication(activitythread.java:6289) @ android.app.activitythread.access$1800(activitythread.java:221) @ android.app.activitythread$h.handlemessage(activitythread.java:1860) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:158) @ android.app.activitythread.main(activitythread.java:7224) @ java.lang.reflect.method.invoke(native method) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1230) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1120) caused by: java.lang.classnotfoundexception: didn't find class "com.orm.sugarapp" on path: dexpathlist[[zip file "/data/app/gigacycle.geoaudiotag-1/base.apk"],nativelibrarydirectories=[/data/app/gigacycle.geoaudiotag-1/lib/arm, /vendor/lib, /system/lib]] @ dalvik.system.basedexclassloader.findclass(basedexclassloader.java:56) @ java.lang.classloader.loadclass(classloader.java:511) @ java.lang.classloader.loadclass(classloader.java:469) @ android.app.instrumentation.newapplication(instrumentation.java:1004) @ android.app.loadedapk.makeapplication(loadedapk.java:666) @ android.app.activitythread.handlebindapplication(activitythread.java:6289) @ android.app.activitythread.access$1800(activitythread.java:221) @ android.app.activitythread$h.handlemessage(activitythread.java:1860) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:158) @ android.app.activitythread.main(activitythread.java:7224) @ java.lang.reflect.method.invoke(native method) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1230) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1120) suppressed: java.lang.classnotfoundexception: com.orm.sugarapp @ java.lang.class.classforname(native method) @ java.lang.bootclassloader.findclass(classloader.java:781) @ java.lang.bootclassloader.loadclass(classloader.java:841) @ java.lang.classloader.loadclass(classloader.java:504) ... 12 more caused by: java.lang.noclassdeffounderror: class not found using boot class loader; no stack trace available
this manifest :
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="gigacycle.geoaudiotag"> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="com.google.android.providers.gsf.permission.read_gservices" /> <uses-permission android:name="android.permission.access_coarse_location" /> <uses-permission android:name="android.permission.access_fine_location" /> <application android:allowbackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundicon="@mipmap/ic_launcher_round" android:supportsrtl="true" android:theme="@style/apptheme" android:name="com.orm.sugarapp"> <meta-data android:name="com.google.android.geo.api_key" android:value="@string/google_maps_key" /> <meta-data android:name="database" android:value="geoaudiotagdb.db" /> <meta-data android:name="version" android:value="2" /> <meta-data android:name="query_log" android:value="true" /> <meta-data android:name="domain_package_name" android:value="gigacycle.geoaudiotag"/> <activity android:name="gigacycle.geoaudiotag.mainactivity" android:label="@string/app_name" android:theme="@style/apptheme.noactionbar"> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> </application> </manifest>
also line compiling successfully!
compile 'com.github.satyan:sugar:1.4'
i don't know why fatal error occurred? mistake?
sync gradle , build.
just download package not generate com.orm.sugarapp. gradle sync generate class , before syncing, appears lint error in androidmanifest. unfortunately cannot captured compiler error , results in runtime error get.
Comments
Post a Comment