首页 / 浏览问题 / 移动GIS / 问题详情
CloudLicenseManager.getInstance(this);报错
58EXP 2022年11月17日
Process: com.example.jstifiled, PID: 21194 java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/params/BasicHttpParams; at com.supermap.data.CloudLicenseManager$a.a(CloudLicenseManager.java:1180) at com.supermap.data.CloudLicenseManager.(CloudLicenseManager.java:179) at com.supermap.data.CloudLicenseManager.getInstance(CloudLicenseManager.java:193) at com.example.jstifiled.Activity.MapCenterActivity.onCreate(MapCenterActivity.java:131) at android.app.Activity.performCreate(Activity.java:8247) at android.app.Activity.performCreate(Activity.java:8218) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3559) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3746) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2166) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:236) at android.app.ActivityThread.main(ActivityThread.java:8164) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967) Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.params.BasicHttpParams" on path: DexPathList[[dex file "/data/data/com.example.jstifiled/code_cache/.overlay/base.apk/classes5.dex", zip file "/data/app/~~7PCEsvTbr44-3-AW8lJJNg==/com.example.jstifiled-XPkzbVxUk4iyWyef-_35-g==/base.apk"],nativeLibraryDirectories=[/data/app/~~7PCEsvTbr44-3-AW8lJJNg==/com.example.jstifiled-XPkzbVxUk4iyWyef-_35-g==/lib/arm, /data/app/~~7PCEsvTbr44-3-AW8lJJNg==/com.example.jstifiled-XPkzbVxUk4iyWyef-_35-g==/base.apk!/lib/armeabi-v7a, /system/lib, /system_ext/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at com.supermap.data.CloudLicenseManager$a.a(CloudLicenseManager.java:1180)  at com.supermap.data.CloudLicenseManager.(CloudLicenseManager.java:179)  at com.supermap.data.CloudLicenseManager.getInstance(CloudLicenseManager.java:193)  at com.example.jstifiled.Activity.MapCenterActivity.onCreate(MapCenterActivity.java:131)  at android.app.Activity.performCreate(Activity.java:8247)  at android.app.Activity.performCreate(Activity.java:8218)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3559)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3746)  at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)  at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)  at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2166)  at android.os.Handler.dispatchMessage(Handler.java:106)  at android.os.Looper.loop(Looper.java:236)  at android.app.ActivityThread.main(ActivityThread.java:8164)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)  2022-11-17 11:32:49.809 3747-3944/? E/OOMEventManager: oom event not support this pkg, dismiss this! 打开app报错,不知道发生了什么,请问这个是我权限的问题吗

1个回答

您好,看报错是找不到加载类,请把所有jar包都放到工程的libs下面,so文件也都加进去,再把AndroidManifest.xml文件里面<applicaation>节点下加上<use-library android:name="org.apache.http.legacy" android:required="false:>
3,735EXP 2022年11月17日
...