在针对x86构建的Android SDK上启动应用程序时出错 [英] Error launching application on Android SDK built for x86
本文介绍了在针对x86构建的Android SDK上启动应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
至少有十几个以前编译并运行的flutter小程序突然无法在Android Studio或Intellij下编译.
There are a least a dozen previously compiled and running flutter applets that suddenly will not compile under Android Studio or Intellij.
即使我构建了一个新的默认Flutter应用,我也会遇到此崩溃错误:
Even if i build a new default Flutter app i get this crash error:
显然已经发生了一些变化..插件/依赖项已升级/更新,并且.gradle和.idea目录已删除...并且项目已重建..但没有什么可以克服的:
Clearly something has changed .. plugins/dependencies have been upgraded/updated and the .gradle and .idea directories removed ... and projects rebuilt .. but nothing gets past this:
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Gradle task 'assembleDebug'...
Built build/app/outputs/apk/debug/app-debug.apk.
cmd: Can't find service: activity
Installing build/app/outputs/apk/app.apk...
Error: ADB exited with exit code 1
adb: failed to install/home/jedaa/workspace/flutter_apps/studio/flutter_apprescue/build/app/outputs/apk/app.apk: cmd: Can't find service: package
Error launching application on Android SDK built for x86.
推荐答案
- 打开AVD Manager
- 擦除数据(从模拟器中删除数据)
- 打开模拟器
- 尝试运行应用
这篇关于在针对x86构建的Android SDK上启动应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文