失敗ネイティブ実行アンドロイドの反応:は私が<strong></strong>-CLIを反応させ、<code>react-native run-android</code>を実行I'amは、いくつかのエラーを取得してプロジェクトを作成するしかしとき、ネイティブアンドロイドガイドページを反応させるから、私はすべての指示に従ってください
FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'test'. > Could not resolve all dependencies for configuration ':classpath'. > Could not resolve org.apache.commons:commons-compress:1.8.1. Required by: :test:unspecified > com.android.tools.build:gradle:2.2.3 > com.android.tools.build:gradle-core:2.2.3 > com.android.tools.build:builder:2.2.3 >
コム.android.tools:sdklib:25.2.3 :テスト:不特定> com.android.tools.build:gradle:2.2.2> com.android.tools.build:gradle-core:2.2.2> com.android。 tools.build:builder:2.2.3> com.android.tools:sdklib:25.2.3> com.android.tools:repository:25.2.3
org.apache.commonsを解決できませんでした:commons-compress:1.8.1。 リソース 'https://jcenter.bintray.com/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.pom'を取得できませんでした。 HEAD 'https://jcenter.bintray.com/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.pom'できませんでした。 接続がjcenter.bintray.com:443へ[jcenter.bintray.com/75.126.118.188]失敗しました:接続が
* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 2 mins 16.65 secs Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/android-setup.html
私は数字に丸一日を検索 (接続がタイムアウト)タイムアウトになりましたGoogleでこの問題の原因を突き止めるが、役に立たないものは何も見つからない。
Available Android Virtual Devices:
Name: Pixel_API_25
Device: pixel (Google)
Path: /home/danial/.android/avd/Pixel_API_25.avd
Target: Google APIs (Google Inc.)
Based on: Android 7.1.1 (Nougat) Tag/ABI: google_apis/x86_64
Skin: pixel
Sdcard: 100M
$が
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/danial/Android/Sdk/tools:/home/danial/Android/Sdk/platform-tools:/home/danial/Android/Sdk/tools/bin
$ javaの-version
openjdk version "1.8.0_131" OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3b11) OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
$アンドロイドリストAVD:ここに は、いくつかの情報です
すべてのものが正しくセットアップされているので、どこに問題があるのか本当に分かりません。
**First Answer Error Again:** [Fatal Error] apache-13.pom:1:44: Content is not allowed in prolog. [Fatal Error] apache-13.pom:1:44: Content is not allowed in prolog. [Fatal Error] apache-13.pom:1:44: Content is not allowed in prolog. [Fatal Error] apache-13.pom:1:44: Content is not allowed in prolog. [Fatal Error] apache-13.pom:1:44: Content is not allowed in prolog. [Fatal Error] apache-13.pom:1:44: Content is not allowed in prolog. [Fatal Error] apache-13.pom:1:44: Content is not allowed in prolog. [Fatal Error] apache-13.pom:1:44: Content is not allowed in prolog. FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'test'. > Could not resolve all dependencies for configuration ':classpath'. > Could not resolve org.apache.commons:commons-compress:1.8.1. Required by: :test:unspecified > com.android.tools.build:gradle:2.2.3 > com.android.tools.build:gradle-core:2.2.3 > com.android.tools.build:builder:2.2.3 >
com.android.tools:sdklib:25.2.3 :テスト:不定> com.android.tools.build:gradle:2.2.3> com.android.tools.build:gradle-コア:2.2.3> com.android.tools.build:builder:2.2.3> com.android.tools:sdklib:25.2.3> com.android.tools:repository:25.2.3
org.apache.commonsを解決できませんでした:commons-compress:1.8.1。 POMを解析できませんhttps://jcenter.bintray.com/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.pom org.apache.commons:commons-parent:33を解決できませんでした。 org.apache.commons:commons-parent:33を解決できませんでした。 POMを解析できませんでしたhttps://jcenter.bintray.com/org/apache/commons/commons-parent/33/commons-parent-33.pom org.apache:apache:13を解決できませんでした。 org.apache:apache:13を解決できませんでした。 POMを解析できませんでしたhttps://jcenter.bintray.com/org/apache/apache/13/apache-13.pom プロローグではコンテンツが許可されていません。 org.apache:apache:13を解決できませんでした。 POMを解析できませんhttps://repo1.maven.org/maven2/org/apache/apache/13/apache-13.pom プロローグではコンテンツが許可されていません。 org.apache.commons:commons-parent:33を解決できませんでした。 POMを解析できませんでしたhttps://repo1.maven.org/maven2/org/apache/commons/commons-parent/33/commons-parent-33.pom org.apache:apache:13を解決できませんでした。 org.apache:apache:13を解決できませんでした。 POMを解析できませんでしたhttps://jcenter.bintray.com/org/apache/apache/13/apache-13.pom プロローグではコンテンツが許可されていません。 org.apache:apache:13を解決できませんでした。 POMを解析できませんhttps://repo1.maven.org/maven2/org/apache/apache/13/apache-13.pom プロローグではコンテンツが許可されていません。 org.apache.commonsを解決できませんでした:commons-compress:1.8.1。 POMを解析できませんhttps://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.pom org.apache.commons:commons-parent:33を解決できませんでした。 org.apache.commons:commons-parent:33を解決できませんでした。 POMを解析できませんでしたhttps://jcenter.bintray.com/org/apache/commons/commons-parent/33/commons-parent-33.pom org.apache:apache:13を解決できませんでした。 org.apache:apache:13を解決できませんでした。 POMを解析できませんでしたhttps://jcenter.bintray.com/org/apache/apache/13/apache-13.pom プロローグではコンテンツが許可されていません。 org.apache:apache:13を解決できませんでした。 POMを解析できませんhttps://repo1.maven.org/maven2/org/apache/apache/13/apache-13.pom プロローグではコンテンツが許可されていません。 org.apache.commons:commons-parent:33を解決できませんでした。 POMを解析できませんでしたhttps://repo1.maven.org/maven2/org/apache/commons/commons-parent/33/commons-parent-33.pom org.apache:apache:13を解決できませんでした。 org.apache:apache:13を解決できませんでした。 POMを解析できませんでしたhttps://jcenter.bintray.com/org/apache/apache/13/apache-13.pom プロローグではコンテンツが許可されていません。 org.apache:apache:13を解決できませんでした。 POMを解析できませんhttps://repo1.maven.org/maven2/org/apache/apache/13/apache-13.pom プロローグではコンテンツが許可されていません。
使用しているOSはどれですか? – wlisrausr
@wlisrausr Ubuntu 16.04 LTS –
これを試しましたか? https://stackoverflow.com/questions/25994163/could-not-resolve-all-dependencies-for-configuration-classpath – wlisrausr