學習流程-2024-07

平凡力量發表於2024-07-21

學習流程-2024-07-20

1.cordova專案新增android平臺後,用android studio開啟platforms/android,“在模擬器執行”按鈕為灰色不可點。需要點右上角sync project with gradle files。但點了之後報錯如下,下一步解決該問題:

Download https://services.gradle.org/distributions/gradle-6.8-bin.zip finished, took 8 m 20 s 611 ms (107.84 MB)
Starting Gradle Daemon...
Gradle Daemon started in 3 s 762 ms

FAILURE: Build failed with an exception.

* Where:
Script 'D:\study\cordova\project\myApp\platforms\android\CordovaLib\cordova.gradle' line: 79

* What went wrong:
A problem occurred evaluating script.
> No usable Android build tools found. Highest 34.x installed version is 33.0.2; Recommended version is 34.0.0.

* 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 13s

相關文章