gpt4 book ai didi

java - 在具有更新的 Android 版本的设备中重新构建和运行 Android 程序时出错(androidapi 15 rev1 到 api 15 rev2)

转载 作者:行者123 更新时间:2023-12-01 17:31:48 26 4
gpt4 key购买 nike

在出现问题之前我执行了以下操作:我在 Android SDK Manager 中运行了更新。它提供了要安装的更新列表,其中包括 SDK 平台工具、SDK 工具的修订版本。下载后我无法自动安装。所以我手动安装,因为这是很多人的问题。我工作区中的大多数应用程序都运行良好,只有少数应用程序除外。

实际问题 我可以成功构建该项目,也可以将其安装在设备中。但是当我单击应用程序的 UI 时,我在设备中收到错误“..进程已意外停止。请重试”在 logcat 中我得到以下内容..

    04-16 19:01:30.131: I/PhoneGapLog(4042): Changing log level to DEBUG(3)
04-16 19:01:30.131: D/DroidGap(4042): DroidGap.onCreate()
04-16 19:01:30.141: D/DroidGap(4042): DroidGap.loadUrl(file:///android_asset/www/index.html)
04-16 19:01:30.141: D/DroidGap(4042): DroidGap: url=file:///android_asset/www/index.html baseUrl=file:///android_asset/www/
04-16 19:01:30.141: D/DroidGap(4042): DroidGap.init()
04-16 19:01:30.261: D/SoftKeyboardDetect(4042): Ignore this event
04-16 19:01:30.311: D/SoftKeyboardDetect(4042): Ignore this event
04-16 19:01:30.351: I/ActivityThread(4042): queueIdle
04-16 19:01:30.351: V/ActivityThread(4042): Reporting idle of ActivityRecord{4a4a9448 token=android.os.BinderProxy@4a4a8ea8 {com.ingage.pocs.phonegap/com.ingage.pocs.phonegap.PhonegapIntegrationActivity}} finished=false
04-16 19:01:30.351: W/ActivityNative(4042): send ACTIVITY_IDLE_TRANSACTION
04-16 19:01:32.051: D/DroidGap(4042): DroidGap.startActivityForResult(intent,-1)
04-16 19:01:32.091: W/dalvikvm(4042): VFY: unable to resolve static method 1761: Lcom/qualcomm/QCAR/QCAR;.requiresAlpha ()Z
04-16 19:01:32.101: W/dalvikvm(4042): VFY: unable to resolve static method 1755: Lcom/qualcomm/QCAR/QCAR;.deinit ()V
04-16 19:01:32.111: W/dalvikvm(4042): VFY: unable to resolve static method 1757: Lcom/qualcomm/QCAR/QCAR;.onPause ()V
04-16 19:01:32.111: W/dalvikvm(4042): VFY: unable to resolve static method 1758: Lcom/qualcomm/QCAR/QCAR;.onResume ()V
04-16 19:01:32.191: W/dalvikvm(4042): Exception Ljava/lang/NoClassDefFoundError; thrown during Lcom/ingage/pocs/phonegap/ImageTargets;.<clinit>
04-16 19:01:32.201: W/dalvikvm(4042): Class init failed in newInstance call (Lcom/ingage/pocs/phonegap/ImageTargets;)
04-16 19:01:32.201: W/dalvikvm(4042): threadid=1: thread exiting with uncaught exception (group=0x400207d8)
04-16 19:01:32.211: E/AndroidRuntime(4042): FATAL EXCEPTION: main
04-16 19:01:32.211: E/AndroidRuntime(4042): java.lang.ExceptionInInitializerError
04-16 19:01:32.211: E/AndroidRuntime(4042): at java.lang.Class.newInstanceImpl(Native Method)
04-16 19:01:32.211: E/AndroidRuntime(4042): at java.lang.Class.newInstance(Class.java:1429)
04-16 19:01:32.211: E/AndroidRuntime(4042): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
04-16 19:01:32.211: E/AndroidRuntime(4042): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2583)
04-16 19:01:32.211: E/AndroidRuntime(4042): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2685)
04-16 19:01:32.211: E/AndroidRuntime(4042): at android.app.ActivityThread.access$2300(ActivityThread.java:126)
04-16 19:01:32.211: E/AndroidRuntime(4042): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2038)
04-16 19:01:32.211: E/AndroidRuntime(4042): at android.os.Handler.dispatchMessage(Handler.java:99)
04-16 19:01:32.211: E/AndroidRuntime(4042): at android.os.Looper.loop(Looper.java:123)
04-16 19:01:32.211: E/AndroidRuntime(4042): at android.app.ActivityThread.main(ActivityThread.java:4633)
04-16 19:01:32.211: E/AndroidRuntime(4042): at java.lang.reflect.Method.invokeNative(Native Method)
04-16 19:01:32.211: E/AndroidRuntime(4042): at java.lang.reflect.Method.invoke(Method.java:521)
04-16 19:01:32.211: E/AndroidRuntime(4042): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
04-16 19:01:32.211: E/AndroidRuntime(4042): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
04-16 19:01:32.211: E/AndroidRuntime(4042): at dalvik.system.NativeStart.main(Native Method)
04-16 19:01:32.211: E/AndroidRuntime(4042): Caused by: java.lang.NoClassDefFoundError: com.qualcomm.ar.pl.CameraPreview
04-16 19:01:32.211: E/AndroidRuntime(4042): at java.lang.Runtime.nativeLoad(Native Method)
04-16 19:01:32.211: E/AndroidRuntime(4042): at java.lang.Runtime.loadLibrary(Runtime.java:448)
04-16 19:01:32.211: E/AndroidRuntime(4042): at java.lang.System.loadLibrary(System.java:557)
04-16 19:01:32.211: E/AndroidRuntime(4042): at com.ingage.pocs.phonegap.ImageTargets.loadLibrary(ImageTargets.java:741)
04-16 19:01:32.211: E/AndroidRuntime(4042): at com.ingage.pocs.phonegap.ImageTargets.<clinit>(ImageTargets.java:128)
04-16 19:01:32.211: E/AndroidRuntime(4042): ... 15 more
04-16 19:01:32.211: E/AndroidRuntime(4042): Caused by: java.lang.ClassNotFoundException: com.qualcomm.ar.pl.CameraPreview in loader dalvik.system.PathClassLoader[/data/app/com.ingage.pocs.phonegap-1.apk]
04-16 19:01:32.211: E/AndroidRuntime(4042): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
04-16 19:01:32.211: E/AndroidRuntime(4042): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
04-16 19:01:32.211: E/AndroidRuntime(4042): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
04-16 19:01:32.211: E/AndroidRuntime(4042): ... 20 more

请指导我。我认为某些类文件未被识别。任何建议都可以。谢谢你们:)

最佳答案

com.qualcomm.ar.pl.CameraPreview来自高通的Vuforia库。只需将 QCAR.jar 复制到项目的 libs 目录即可。

关于java - 在具有更新的 Android 版本的设备中重新构建和运行 Android 程序时出错(androidapi 15 rev1 到 api 15 rev2),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10175304/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com