osdio / noder-react-native

The mobile app of cnodejs.org written in React Native
https://cnodejs.org/about
1.97k stars 389 forks source link

Could not get unknown property 'MYAPP_RELEASE_STORE_FILE' #94

Open HarryF514 opened 6 years ago

HarryF514 commented 6 years ago

我遇到这个问题了

harry1:noder harryfeng$ npm run android

> noder@1.0.5 android /Users/harryfeng/Documents/noder
> node node_modules/react-native/local-cli/cli.js run-android

Scanning folders for symlinks in /Users/harryfeng/Documents/noder/node_modules (15ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/harryfeng/Documents/noder/android/app/build.gradle' line: 122

* What went wrong:
A problem occurred evaluating project ':app'.
> Could not get unknown property 'MYAPP_RELEASE_STORE_FILE' for SigningConfig_Decorated{name=release, storeFile=null, storePassword=null, keyAlias=null, keyPassword=null, storeType=null, v1SigningEnabled=true, v2SigningEnabled=true} of type com.android.build.gradle.internal.dsl.SigningConfig.

* 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: 6.259 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
harry1:noder harryfeng$ 
flyskywhy commented 6 years ago

设置全局变量 ~/.gradle/gradle.properties