[英]Gradle Build issue while trying to run a react-native project using run-android command
在嘗試執行 react-native run-android 命令以在 Android Studio 模擬器上運行我的 react-native 項目時,我正面臨這個構建 Z8ED1A771BC236BDC2787 問題。 有人可以建議任何必要的更改嗎?
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'newzera'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve org.glassfish.jaxb:jaxb-runtime:2.2.11.
Required by:
project : > com.android.tools.build:gradle:3.4.2 > com.android.tools.build:builder:3.4.2 > com.android.tools:sdklib:26.4.2 > com.android.tools:repository:26.4.2
> Could not resolve org.glassfish.jaxb:jaxb-runtime:2.2.11.
> Could not parse POM https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.pom
> Could not resolve com.sun.xml.bind.mvn:jaxb-runtime-parent:2.2.11.
> Could not resolve com.sun.xml.bind.mvn:jaxb-runtime-parent:2.2.11.
> Could not parse POM https://jcenter.bintray.com/com/sun/xml/bind/mvn/jaxb-runtime-parent/2.2.11/jaxb-runtime-parent-2.2.11.pom
> Could not resolve com.sun.xml.bind.mvn:jaxb-parent:2.2.11.
> Could not resolve com.sun.xml.bind.mvn:jaxb-parent:2.2.11.
> Could not parse POM https://jcenter.bintray.com/com/sun/xml/bind/mvn/jaxb-parent/2.2.11/jaxb-parent-2.2.11.pom
> Could not resolve com.sun.xml.bind:jaxb-bom-ext:2.2.11.
> Could not resolve com.sun.xml.bind:jaxb-bom-ext:2.2.11.
> Could not parse POM https://jcenter.bintray.com/com/sun/xml/bind/jaxb-bom-ext/2.2.11/jaxb-bom-ext-2.2.11.pom
> Invalid byte 2 of 4-byte UTF-8 sequence.
* 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 12s
看起來以下插件在您的 gradle 構建中導致錯誤:
org.glassfish.jaxb:jaxb-runtime:2.2.11.
也許您應用了錯誤的 gradle 插件。 我建議閱讀建議您應用此插件的文檔。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.