我想谈一谈下面的问题。我是新编辑的guild.gradle或程序保护文件。
Unable to execute dex: method ID not in [0, 0xffff]: 65536以下是我需要从谷歌播放服务的功能列表。我有谷歌游戏版本7571000。
请让我知道我需要在build.gradle和please文件中设置什么吗?另外,请在build.gradle和proguard文件上显示一些光线。
我已经在我的build.gradle中添加了这个。我仍然有同样的问题:
Unable to execute dex: method ID not in [0, 0xffff]: 65536下面是我的libs依赖项:
dependencies {
compile 'com.google.android.gms:play-services-ads:7.5.+'
compile 'com.google.android.gms:play-services-analytics:7.5.+'
compile 'com.google.android.gms:play-services-appindexing:7.5.+'
compile 'com.google.android.gms:play-services-appinvite:7.5.+'
compile 'com.google.android.gms:play-services-auth:7.5.+'
compile 'com.google.android.gms:play-services-common:7.5.+'
compile 'com.google.android.gms:play-services-games:7.5.+'
compile 'com.google.android.gms:play-services-plus:7.5.+'
}发布于 2015-06-24 16:09:25
似乎你在你的应用程序中有超过65K的方法要做。在这种情况下,您需要使用MultiDex。
您可以在这里阅读有关在应用程序中使用MulltiDex的信息,使用65 K以上的方法构建应用程序
此外,您还可以分离您的GPS,如下所示
compile 'com.google.android.gms:play-services-base:7.5.0'
compile 'com.google.android.gms:play-services-ads:7.5.0'
compile 'com.google.android.gms:play-services-gcm:7.5.0'https://stackoverflow.com/questions/31031362
复制相似问题