【发布时间】:2016-06-25 17:04:50
【问题描述】:
我应该编译什么而不是:
compile 'com.google.android.gms:play-services:9.0.2'
compile 'com.google.android.gms:play-services-maps:9.0.2'
compile 'com.google.android.gms:play-services-location:9.0.2'
compile 'com.google.android.gms:play-services-base:9.0.2'
compile 'com.android.support:multidex:1.0.0'
在我的dependencies 中build.gradle (Module:app) 当我downgraded Google Play Services from 9.0.83 to 8.1.18 manually 时?我的目的是避免这个日志错误:
06-24 18:50:24.488 7128-7759/com.noureddine_ouertani.www.wocelli50 E/DynamiteModule:无法加载模块描述符类:未找到 班级 “com.google.android.gms.dynamite.descriptors.com.google.android.gms.googlecertificates.ModuleDescriptor” 在路径上:DexPathList[[zip 文件 "/data/app/com.noureddine_ouertani.www.wocelli50-2/base.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
@呃。 Arjun saini:我收到了这个错误。 (我的 Manifest 文件配置正确。)
我现在正在尝试使用以下 build.gradle 进行清理:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.noureddine_ouertani.www.wocelli50"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
//incremental = true;
preDexLibraries = false
javaMaxHeapSize "4g"
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-annotations:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
//compile 'com.google.android.gms:play-services:9.0.2'
//compile 'com.google.android.gms:play-services-maps:9.0.2'
//compile 'com.google.android.gms:play-services-location:9.0.2'
//compile 'com.google.android.gms:play-services-base:9.0.2'
//compile 'com.android.support:multidex:1.0.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.android.gms:play-services:+' //remove others instead of
}
编译作品。但是,当我转到路线跟踪活动时,我的应用程序希望我更新 Google Play 服务。我也看不到地图了。
我在降级后更新了 Google Play 服务并登陆 here。
【问题讨论】:
标签: java android google-maps