Android Studio uploads sterile APK to device when Gradle has custom logic changing APK names

前端 未结 2 870
深忆病人
深忆病人 2021-01-23 03:55

While using Android Studio I encountered the following error: \"enter

The date of the APK

2条回答
  •  离开以前
    2021-01-23 05:02

    It is a problem with sync between Gradle and Android Studio. Press Gradle Sync icon (it is icon between Project Structure and AVD Manager) and it will solve the issue.

    (In comments you asked for explanation - I found this answer few weeks ago, when I had also issue with this[but now I cannot find this page]. If I remember correctly was information, that during Sync Gradle is informing AS about different information including info about apk path. In your case [and mine in past] path is changing every day, as we have date in name of apk and due to this we have to make Sync)

提交回复
热议问题