当我试图执行react-native run-android命令来在Android Studio模拟器上运行我的react-native项目时,我遇到了这个build gradle问题。有没有人能建议一些必要的改变?
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发布于 2020-04-22 00:01:01
看起来下面的插件在你的gradle版本中导致了一个错误:
org.glassfish.jaxb:jaxb-runtime:2.2.11.也许你应用了一个错误的gradle插件。我建议您阅读建议您应用此插件的文档。
https://stackoverflow.com/questions/61342138
复制相似问题