我如何解决 运行 flutter app on phone 而不是 windows 10 模拟器的问题
How I can fix the problem of running flutter app on phone instead of emulator in windows 10
大家好当我尝试在 phone 上 运行 Flutter 应用程序时,出现了这个问题。
有什么帮助吗?
谢谢
ProcessException:进程 "C:\Users\wiam\IdeaProjects\wiamflutter\android\gradlew.bat" 异常退出:
失败:构建失败,出现异常。
出了什么问题:
配置根项目时出现问题 'android'。
Could not resolve all artifacts for configuration ':classpath'.
Could not find crash.jar (com.android.tools.analytics-library:crash:26.2.1).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/crash/26.2.1/crash-26.2.1.jar
Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2-proto/0.3.1/aapt2-proto-0.3.1.jar
尝试:
运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。 运行 使用 --scan 以获得完整的见解。
获取更多帮助
3 秒内构建失败
命令:C:\Users\wiam\IdeaProjects\wiamflutter\android\gradlew.bat app:properties
请检查您在 android/ 文件夹中的 Gradle 项目设置。
升级你的 flutter 包,也许它会在这之后工作。
好的,解决方案是更新 Android Studio 和 Android 软件开发工具包。
大家好当我尝试在 phone 上 运行 Flutter 应用程序时,出现了这个问题。 有什么帮助吗? 谢谢
ProcessException:进程 "C:\Users\wiam\IdeaProjects\wiamflutter\android\gradlew.bat" 异常退出:
失败:构建失败,出现异常。
出了什么问题: 配置根项目时出现问题 'android'。
Could not resolve all artifacts for configuration ':classpath'. Could not find crash.jar (com.android.tools.analytics-library:crash:26.2.1). Searched in the following locations: https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/crash/26.2.1/crash-26.2.1.jar Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1). Searched in the following locations: https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2-proto/0.3.1/aapt2-proto-0.3.1.jar
尝试: 运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。 运行 使用 --scan 以获得完整的见解。
- 获取更多帮助
3 秒内构建失败 命令:C:\Users\wiam\IdeaProjects\wiamflutter\android\gradlew.bat app:properties
请检查您在 android/ 文件夹中的 Gradle 项目设置。
升级你的 flutter 包,也许它会在这之后工作。
好的,解决方案是更新 Android Studio 和 Android 软件开发工具包。