Google Map Api v2显示未找到本地模块描述符类

时间:2016-09-20 02:12:32

标签: android api google-maps android-gradle google-play-services

今天我在模拟器上开始应用程序后遇到了这个问题,但昨天一切正常,我还没有编辑前一天的任何更改。调查后,API密钥也有效。

我尝试的事情:

  1. 降级com.google.android.gms服务的版本
  2. 将所有服务更新为最新版本
  3. 重建/清理项目
  4. 使Android Studio无效/重启
  5. 但错误仍然存​​在。

    Logcat显示模拟器何时打开应用程序:

    09-20 09:49:09.261 25985-25985/com.abc.abc I/c: Token loaded from file. Expires in: 174900321 ms.
    09-20 09:49:11.339 25985-26088/com.abc.abc W/DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found.
    09-20 09:49:11.341 25985-26088/com.abc.abc I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:1
    09-20 09:49:11.341 25985-26088/com.abc.abc I/DynamiteModule: Selected remote version of com.google.android.gms.googlecertificates, version >= 1
    09-20 09:49:11.343 25985-26088/com.abc.abc D/GoogleCertificates: com.google.android.gms.googlecertificates module is loaded
    

    我的build.grade(Module:app)在我的应用程序上编译了这些服务:

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        testCompile 'junit:junit:4.12'
        compile 'com.android.support:appcompat-v7:24.2.1'
        compile 'com.google.android.gms:play-services-maps:9.4.0'
        compile 'com.google.android.gms:play-services-ads:9.4.0'
        compile 'com.google.android.gms:play-services-auth:9.4.0'
        compile 'com.google.android.gms:play-services-gcm:9.4.0'
        compile 'com.facebook.android:facebook-android-sdk:[4,5)'
        compile 'com.android.support:design:24.2.1'
        compile 'com.android.support:support-v4:24.2.1'
        compile 'me.angrybyte.picker:picker:1.2.0'
        compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
        compile 'com.android.support:recyclerview-v7:24.2.1'
        compile 'de.hdodenhof:circleimageview:1.2.1'
    }
    

    我发现有人遇到此问题并在此网站上提问,但我不确定错误是在我的应用程序中引起的。谢谢。

    更新: 谷歌地图可以显示,但我无法通过点击地图(onClick功能)收集console.log(国家代码/国家/地区名称)的数据。

0 个答案:

没有答案