Session 'app' error while installing APK

后端 未结 30 1989
轻奢々
轻奢々 2020-11-28 03:30

I am having difficulty importing a project written on Android Studio 1.1 into Android Studio 2.1.2. I keep getting this error whenever the gradle is building before testing

30条回答
  •  抹茶落季
    2020-11-28 04:09

    Looking at the error message, Android Studio tried to install older version of apk (lets say 0.5.1) while current version is lets say 0.5.2. Android Studio builds 0.5.2 but tries to install 0.5.1 for some reason.

    I have turned off Instant Run, invalidated and restarted, rebuilt project and didn't help.

    Solution worked for me is to uninstall the app, then change the current branch on VCS to some other branch. Then come again to latest branch and Rebuilt, Install the APK again.

提交回复
热议问题