Can't upload Android app to device (stale dexed jars)

后端 未结 16 549
别跟我提以往
别跟我提以往 2020-12-05 17:11

I am using Android Studio to develop this app, and today when I tried to upload it to my device to test I got a popup window saying:

Installation fail

16条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 17:20

    In my project I got past this by being more specific about which portions of Google Play Services I was linking with. In particular, I changed

    dependencies {
        ...
        compile 'com.google.android.gms:play-services:8.4.0'
    }
    

    to

    dependencies {
        ...
        compile 'com.google.android.gms:play-services-maps:8.4.0'
    }
    

    in my app module's build.gradle, since all I was really using was the maps API.

提交回复
热议问题