首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >转换为Dalvik格式失败:在添加API 23后无法执行dex: method ID not in [0,0 0xffff]:65536

转换为Dalvik格式失败:在添加API 23后无法执行dex: method ID not in [0,0 0xffff]:65536
EN

Stack Overflow用户
提问于 2016-09-09 06:30:22
回答 1查看 150关注 0票数 1

我使用的是,我实现了用于视频压缩的,实际上这是for Studio的,但是我转换了给定的库,但是ffmpeg需要- 23,所以我从sdk管理器中添加了API-23,在添加API 23之后,我得到了“转换为Dalvik格式失败:无法执行dex: method ID not in 0,0xffff: 65536”错误。对于这个问题,我以前问了4-5个问题,但没有找到满意的答案。所以任何帮助都会很感激。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-09-12 13:03:17

发生此错误是因为65K方法的限制超过了。

您需要检查在项目中添加了多少库或.jar文件。

这个错误主要是因为你的google-play-services libs项目。如果您使用的是“google services”lib项目,那么尝试以下解决方案

代码语言:javascript
复制
1] go in the google-play-service-lib project
2] go in libs
3] unzip the file google-play-services.jar
4] go in the the unzipped folder and remove all folders that you don't need (i.e. if you need Analytics, you can remove ads, games, maps, wallet, drive, etc.)
5]zip again such a folder (that now contains only the needed libraries) together with the MANIFEST folder
6]use such new jar with your project.
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39405170

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档