本来计划加入fcm监控然后提交到google play的,老师build错误
build.gradle内容:
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"
解决方案
40
The number of method reference in a .dex file cannot exceed 64K ,方法引用数量超过了64K
需要用多个dex解决,用AAPT命令 或 用开源方案 https://github.com/singwhatiwanna/dynamic-load-apk
需要用多个dex解决,用AAPT命令 或 用开源方案 https://github.com/singwhatiwanna/dynamic-load-apk