WARNING:Uninstalling will remove the application data

根据上篇转载博文https://blog.csdn.net/sinat_15417921/article/details/51907728所述,解决android端报错

Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run (or updating either the IDE or the Gradle plugin to the latest version)

即更新distributionUrl=https://services.gradle.org/distributions/gradle-4.11-all.zip,奈何更新没成功,又退回原distributionUrl.后来报了如下错误:

WARNING:Uninstalling will remove the application data_第1张图片

解决方法:

1、打开Edit Configurations...

2、在Install Flags中写上“-t”

3、依次点击Apply——OK,重新运行成功。

WARNING:Uninstalling will remove the application data_第2张图片

参考博文:https://www.cnblogs.com/diyishijian/p/7719908.html

你可能感兴趣的:(android)