我正在嘗試遵循本教程:https ://pub.dev/packages/chaquopy ,但我無法讓它運行。我按照示例選項卡中的代碼將按鈕更改為文本按鈕。我添加了自述檔案選項卡中描述的依賴項,直到它說要同步專案(將內容添加到 android\build.gradle、android\app\build.gradle 和 AndroidManifest.xml)。當我嘗試使用 Android Studio 中的 Run 按鈕構建專案時(我認為這就是同步專案的意思),我遇到了構建失敗。
這是構建失敗:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
> Could not find com.chaquo.python:gradle:latest-version.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/chaquo/python/gradle/latest-version/gradle-latest-version.pom
- https://jcenter.bintray.com/com/chaquo/python/gradle/latest-version/gradle-latest-version.pom
- https://chaquo.com/maven/com/chaquo/python/gradle/latest-version/gradle-latest-version.pom
Required by:
project :
* 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 6s
Exception: Gradle task assembleDebug failed with exit code 1
有人可以幫我確定我失敗的原因嗎?我盡我所能遵循鏈接的教程。
uj5u.com熱心網友回復:
“最新版本”是一個占位符。您應該使用此串列中的實際最新版本替換它。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/521313.html
標籤:扑毕业典礼查库比
