Android 运行测试应用程序时出现错误

Android 运行测试应用程序时出现错误,android,android-studio,flutter,Android,Android Studio,Flutter,如果有人能帮我,那就太好了。 我正在努力学习,这些错误让我停滞不前 Error running Gradle: ProcessException: Process "C:\Users\HP\AndroidStudioProjects\flutternew\android\gradlew.bat" exited abnormally: Configure project :app Checking the license for package Android SDK Platform 27 i

如果有人能帮我,那就太好了。 我正在努力学习,这些错误让我停滞不前

Error running Gradle:
ProcessException: Process "C:\Users\HP\AndroidStudioProjects\flutternew\android\gradlew.bat" exited abnormally:
 Configure project :app
Checking the license for package Android SDK Platform 27 in C:\Users\HP\AppData\Local\Android\sdk\licenses
Warning: License for package Android SDK Platform 27 not accepted.
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\HP\AndroidStudioProjects\flutternew\android\build.gradle' line: 24
 What went wrong:
A problem occurred evaluating root project 'android'.
A problem occurred configuring project ':app'.
Failed to install the following Android SDK packages as some licences have not been accepted.
        platforms;android-27 Android SDK Platform 27
     To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
     Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
Using Android SDK: C:\Users\HP\AppData\Local\Android\sdk
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 7m 38s
  Command: C:\Users\HP\AndroidStudioProjects\flutternew\android\gradlew.bat app:properties
Finished with error: Please review your Gradle project setup in the android/ folder.

正如您在日志中看到的,这就是原因-
警告:不接受Android SDK Platform 27软件包的许可证。


您可以从终端运行
flatter-doctor
,它会要求您运行
flatter-doctor--android许可证
,以便接受它们。修复它可能指示的任何其他问题。在那之后,您应该可以开始了。

正如您在日志中看到的,这就是原因-
警告:不接受Android SDK平台27软件包的许可证。


您可以从终端运行
flatter-doctor
,它会要求您运行
flatter-doctor--android许可证
,以便接受它们。修复它可能指示的任何其他问题。在那之后,你应该可以走了。

你试过使用iOS设备吗?你在sdk管理器中安装了所需的sdk吗?请发布
flatter doctor-v
的输出,这似乎是一个渐变问题,也许将其更改为-dev branch会很好。您是否尝试过使用iOS设备?您是否在sdk管理器中安装了所需的sdk?请发布
flatter doctor-v
的输出。这似乎是一个渐变问题,也许将其更改为-dev branch会很好。