帮助!我在Android商店有一个应用程序,我的一个用户最近报告了一个错误,但我无法找到错误来源的位置。这是ANR报告:
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 "/mnt/asec/com.applicationcomp.myapplication-1/pkg.apk"],nativeLibraryDirectories=[/mnt/asec/com.applicationcomp.myapplication-1/lib, /system/lib]]
at android.app.LoadedApk.makeApplication(LoadedApk.java:516)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4580)
at android.app.ActivityThread.access$1500(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1290)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5299)
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:932)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:748)
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 "/mnt/asec/com.applicationcomp.myapplication-1/pkg.apk"],nativeLibraryDirectories=[/mnt/asec/com.applicationcomp.myapplication-1/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.app.Instrumentation.newApplication(Instrumentation.java:987)
at android.app.LoadedApk.makeApplication(LoadedApk.java:511)
... 11 more
有谁知道这些错误的原因?一旦应用程序在Android 4.4设备上启动,这显然就会发生(我还在4.2上得到了另一个报告)。
*****重要提示****** 出于某种原因,这似乎只发生在一些4.4设备上,不幸的是我无法在Android Studio模拟器中复制它
答案 0 :(得分:0)
检查您尝试启动的课程是否在您的清单中注册。 也许它不是因为你得到这个错误。 希望它能奏效。
答案 1 :(得分:0)
看看https://code.google.com/p/android/issues/detail?id=199327 - 似乎你启用了# You may have already imported column, but for completeness:
from sqlalchemy import column
# As an example:
find_name = 'wendy'
stmt = text("SELECT name, id, fullname, (random()) as random_value FROM users WHERE name=:name")
stmt = stmt.columns(column('name'), column('id'), column('fullname'), column('random_value'))
users = session.query(column('name'), column('id'), column('fullname'), column('random_value')).from_statement(stmt).params(name = find_name)
for user in users:
print(user.id, user.name, user.fullname, user.random_value)
功能,它会导致Android 4上的问题,因为它不受支持(虽然它不应该使应用程序崩溃,当然,但它& #39;可能是个错误。)
尝试在禁用Instant Run
的情况下构建应用。
根据https://medium.com/google-developers/instant-run-how-does-it-work-294a1633367f#.bo88mglpe Instant Run
向应用中注入一些代码(Instant Run
),谁知道Android 4上可能会发生什么))
答案 2 :(得分:0)
Android ClassNotFoundException: Didn't find class on path
似乎它可能是android支持库版本和库项目之间的冲突