程序报错java.lang.VerifyError,网上给出的解决方案基本都是以前的基于eclipse的,android studio咋办

zhugegangtie 2016-10-13 11:29:50
具体报错为:
java.lang.VerifyError: com/esri/core/internal/util/d
at com.esri.core.symbol.PictureMarkerSymbol.toJson(SourceFile:264)
at com.esri.android.map.GraphicsLayer.addGraphic(SourceFile:257)
at com.mlight.chat.activities.jqxx.JqxxMapActivity.sprinkle(JqxxMapActivity.java:427)
at com.mlight.chat.activities.jqxx.JqxxMapActivity.access$300(JqxxMapActivity.java:52)
at com.mlight.chat.activities.jqxx.JqxxMapActivity$2.handleMessage(JqxxMapActivity.java:349)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5336)
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:873)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)
at dalvik.system.NativeStart.main(Native Method)
在网上找到的方法基本都是:右键-Build Path-Order and Export,选中jar包,但关键是我这是android studio,不是eclipse啊,应该如何解决呢
...全文
547 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhugegangtie 2017-04-13
  • 打赏
  • 举报
回复
隔了这么长时间才结帖,原因当时找到了,反编译发现是app中方法数量过多,启用了multiDex,但偏偏有没有再application中调用,才会在运行时找不到某些方法(被分到了另一个dex包中)
yaochaoyang 2016-10-26
  • 打赏
  • 举报
回复
10-26 11:46:11.309 14693-16350/com.glopay.wallet E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:299) at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) at java.util.concurrent.FutureTask.setException(FutureTask.java:124) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307) at java.util.concurrent.FutureTask.run(FutureTask.java:137) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) at java.lang.Thread.run(Thread.java:856) Caused by: java.lang.VerifyError: com/glopay/wallet/utils/JoseUtil at com.glopay.wallet.base.BaseHttpPost.doInBackground(BaseHttpPost.java:51) at com.glopay.wallet.base.BaseHttpPost.doInBackground(BaseHttpPost.java:22) at android.os.AsyncTask$2.call(AsyncTask.java:287) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) at java.util.concurrent.FutureTask.run(FutureTask.java:137)  at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)  at java.lang.Thread.run(Thread.java:856)  楼主解决了?我也遇到了
哎,真难 2016-10-13
  • 打赏
  • 举报
回复
引用 2 楼 zhugegangtie 的回复:
[quote=引用 1 楼 heaimnmn 的回复:] as一样的导入jar包咯
关键是我引用jar包,编译没问题,但是运行就会报这错[/quote]你要去看jar包支持的sdk,Android uses a different class file format. Are you running the 3rd party JAR files through the "dx" tool that ships with the Android SDK?
zhugegangtie 2016-10-13
  • 打赏
  • 举报
回复
引用 1 楼 heaimnmn 的回复:
as一样的导入jar包咯
关键是我引用jar包,编译没问题,但是运行就会报这错
哎,真难 2016-10-13
  • 打赏
  • 举报
回复
as一样的导入jar包咯
zhugegangtie 2016-10-13
  • 打赏
  • 举报
回复
有大神可以帮帮忙不,在线等!!!
zhugegangtie 2016-10-13
  • 打赏
  • 举报
回复
引用 3 楼 heaimnmn 的回复:
[quote=引用 2 楼 zhugegangtie 的回复:] [quote=引用 1 楼 heaimnmn 的回复:] as一样的导入jar包咯
关键是我引用jar包,编译没问题,但是运行就会报这错[/quote]你要去看jar包支持的sdk,Android uses a different class file format. Are you running the 3rd party JAR files through the "dx" tool that ships with the Android SDK?[/quote] 我一直认为是跟项目中的某个包冲突了
zhugegangtie 2016-10-13
  • 打赏
  • 举报
回复
引用 3 楼 heaimnmn 的回复:
[quote=引用 2 楼 zhugegangtie 的回复:] [quote=引用 1 楼 heaimnmn 的回复:] as一样的导入jar包咯
关键是我引用jar包,编译没问题,但是运行就会报这错[/quote]你要去看jar包支持的sdk,Android uses a different class file format. Are you running the 3rd party JAR files through the "dx" tool that ships with the Android SDK?[/quote] 这个跟我使用的sdk版本有关吗,我一开始写了个demo,同样的开发环境,这段代码是能跑的,但是在把它集成进项目中的时候就报了这个错

80,490

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧