升级android studio到3.6.2版本后直接无法正常烧录APK,错误如下:
Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant
在stackoverflow上查到解决方案:https://stackoverflow.com/questions/56440572/how-to-fix-unable-to-determine-application-id-com-android-tools-idea-run-apkpr?r=SearchResults
4
This is because your gradle version in project build.gradle configuration is too old for a newer Android Studio version, like Android Studio 3.6.1,
1. you should change the gradle configuration into a newer one under: build.gradle(project)->buildscript->dependencies->classpath;
for example, you should change:
classpath 'com.android.tools.build:gradle:2.3.1'
into:
classpath 'com.android.tools.build:gradle:3.1.2'
2. after this