2017-12-23 1 views
0

でアプリをインストールすることができませんでしたこんにちは反応し、ネイティブウィンドウ上で始めていますし、私は私の最初のプロジェクトを構築しましたが、私は反応ネイティブデバイス

react-native run-andoird 

でそれを実行すると、それは私にこの

を与えます
* What went wrong: 
A problem occurred configuring root project 'albums'. 
> Could not resolve all files for configuration ':classpath'. 
> Could not resolve com.android.tools.build:gradle:3.0.1. 
Required by: 
    project : 
    > Could not resolve com.android.tools.build:gradle:3.0.1. 
    > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'. 
     > Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'. 
      > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/108.168.243.150] failed: Connection timed out: connect 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or -- 
debug option to get more log output. 

* Get more help at https://help.gradle.org 

    BUILD FAILED in 22s 
    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 

助けてください

+0

あなたはどちらのバージョンを使用していますか? – Kraylog

+0

gradle version 4.1 – amirhesni

+0

アクセス可能かどうかを確認するために、telnetなどのURLでURLに接続しようとしましたか? – Kraylog

答えて

0

あなたのプロフィールやユーザー情報は、あなたがイラン出身であることを示しています。その場合、いつもいつも常にあなたのVPNがONになっている状態で常に反応ネイティブを実行してください。

react-nativeは、run-androidコマンドを実行するときに必要なパッケージとツールをダウンロードしようとしますが、多くのリポジトリは403コードを返します。それがエラーを起こす理由です。

+0

私はホットスポットシールド、psipon3とaviraを試しても、まだVPNが動いていたと確信していますか? – amirhesni

+0

?このURLにアクセスする際にエラーが発生したとのエラーが表示されます。https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom試してブラウザにロードし、結果を表示せずに読み込みを続行する場合は、VPNを変更する必要があります。 –