2017-06-08 20 views
3

私は反応ネイティブを使用してアプリケーションを作成しましたが、私はapkを生成しようとしています。 doc:http://facebook.github.io/react-native/docs/signed-apk-android.html#contentで全身をした後。エラーが発生しました。 react-native \ react.gradleというスクリプトは存在しないため、読み込めませんでした。react-native react.gradle 'は存在しません

は、ここでは、 NPMが

およびインストールして、すべての問題が終わっ行うことができ、エラー

FAILURE: Build failed with an exception. 

* Where: 
Build file 'C:\Users\User\Desktop\Aaa\android\app\build.gradle' line: 68 

* What went wrong: 
A problem occurred evaluating project ':app'. 
> Could not read script 'C 



* // override which node gets called and with what additional arguments 
* nodeExecutableAndArgs: ["node"], 
* 
* // supply additional arguments to the packager 
* extraPackagerArgs: [] 
* ] 
*/ 

apply from: "../../node_modules/react-native/react.gradle" 

/** 
* Set this to true to create two separate APKs instead of one: 
* - An APK that only works on ARM devices 
* - An APK that only works on x86 devices 
* The advantage is the size of the APK is reduced by about 4MB. 
* Upload all the APKs to the Play Store and people will download 
* the correct one based on the CPU architecture of their device. 
*/ 
def enableSeparateBuildPerCPUArchitecture = false 
+0

android/app/build.gradleにgradle設定をペーストできますか? –

+0

すべて@ max23_? – orange

+0

おそらく60行目から70行目までですか? (これは68行目で不平を言っているので) –

答えて

0

です。

+0

この回答は広すぎます...なぜreact.gradleが読まないのかという問題は解決しません。 – MizAkita

関連する問題