android studio打包错误

engourdi 2016-06-28 12:42:18
本来打算加入fcm监控然后提交到google play的,老师build错误

build.gradle内容:
apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
sourceSets.main {
jniLibs.srcDirs = ['libs']
}
defaultConfig {
applicationId "com.asd.ss"
minSdkVersion 15
targetSdkVersion 23
versionCode 3
versionName "1.1"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':pulltorefresh')
compile files('libs/gson-2.3.jar')
compile files('libs/httpmime-4.1.3.jar')
compile files('libs/jpush-android-2.1.3.jar')
compile files('libs/SocialSDK_QQZone_1.jar')
compile files('libs/SocialSDK_QQZone_2.jar')
compile files('libs/SocialSDK_QQZone_3.jar')
compile files('libs/SocialSDK_Sina.jar')
compile files('libs/SocialSDK_WeiXin_1.jar')
compile files('libs/SocialSDK_WeiXin_2.jar')
compile files('libs/umeng_social_sdk.jar')
compile files('libs/universal-image-loader-1.9.4.jar')
testCompile 'junit:junit:4.12'

compile 'com.squareup.okhttp:okhttp:2.5.0'
compile 'com.squareup.okio:okio:1.5.0'
compile 'com.orhanobut:logger:1.11'
compile 'org.litepal.android:core:1.2.1'
compile 'com.google.android.gms:play-services:9.2.0'
compile 'com.google.firebase:firebase-core:9.0.2'
compile 'com.google.android.gms:play-services-ads:9.2.0'
compile 'com.google.android.gms:play-services-auth:9.2.0'
compile 'com.google.android.gms:play-services-gcm:9.2.0'
}
apply plugin: 'com.google.gms.google-services'
...全文
168 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
engourdi 2016-07-29
  • 打赏
  • 举报
回复
引用 1 楼 birdsaction 的回复:
The number of method reference in a .dex file cannot exceed 64K ,方法引用数量超过了64K 需要用多个dex解决,用AAPT命令 或者 用开源方案 https://github.com/singwhatiwanna/dynamic-load-apk
我把googleplay的一些包删掉了,本来想的放在google上,还是先不弄了,国内一些第三方包检测的时候还有些安全隐患...
Birds2018 2016-06-28
  • 打赏
  • 举报
回复
The number of method reference in a .dex file cannot exceed 64K ,方法引用数量超过了64K 需要用多个dex解决,用AAPT命令 或者 用开源方案 https://github.com/singwhatiwanna/dynamic-load-apk

80,360

社区成员

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

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