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

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

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

The date of the APK

相关标签:
2条回答
  • 2021-01-23 04:38

    If you want a workaround for this you can check out my answer on this post.

    Basically, you wold only rename the APK when doing a command line build, such as from a CI Server. While doing normal development Android Studio works as usual.

    0 讨论(0)
  • 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)

    0 讨论(0)
提交回复
热议问题