Waiting for Target Device to Come Online

前端 未结 30 2544
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 23:28

I recently updated to Android Studio 2.3, and now when I try to run the application, the emulator does not come online. It times out after 300 seconds.

Additionally,

30条回答
  •  情话喂你
    2020-12-01 00:24

    The problem is that there is no link between ide and the emulator.

    In our case - we lowered version of android for the app, that frustrated ide in emulator linking.

    If we install Android 25 and bind project to it, and AVD Device on Android 25 as well - it links and apllies changes on the fly. If we downgrade to Android 14 and device on android 14 - it doesn't.

    Used Android Studio 2.3.

    To play with versions you can set in Gradle Scripts - build.gradle (Module: app):

    android {
      compileSdkVersion 25
      defaultConfig {
        minSdkVersion 15
        targetSdkVersion 15
      }
    }
    

    As a result app won't run on an Android 25 device with a message:

    Installation failed with message Failed to finalize session : -26: Package ru.asv.test new target SDK 15 doesn't support runtime permissions but the old target SDK 25 does.. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

    WARNING: Uninstalling will remove the application data!

提交回复
热议问题