a-dilettante / HackerBuzz-ReactNative

A Hacker News Reader built in React Native for iOS and Android
MIT License
231 stars 66 forks source link

Build Error #7

Open iammelvin opened 6 years ago

iammelvin commented 6 years ago

Hello

I just started with react native and i cloned the sample did npm install and ran the command 'react-native run-android' from vscode terminal but i get the below error.I tried to search in google but nothing came up.It's just a new start for me so any help on how to resolve this issue will be really appreciated.

'Error:Could not get unknown property 'HACKERBUZZ_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.

Consult IDE log for more details (Help | Show Log)'

P.s I tried to build the project in android studio but i get the same error.

Thanks

StreethawkNick commented 6 years ago

@iammelvin remove this line from your android/app/build.gradle file

   signingConfigs {
        release {
            storeFile file(HACKERBUZZ_RELEASE_STORE_FILE)
            storePassword HACKERBUZZ_RELEASE_STORE_PASSWORD
            keyAlias HACKERBUZZ_RELEASE_KEY_ALIAS
            keyPassword HACKERBUZZ_RELEASE_KEY_PASSWORD
        }
    }

and

signingConfig signingConfigs.release // add this line as well

iammelvin commented 6 years ago

@StreethawkNick Thanks for the reply man will try that out !

phungxuanvuong commented 4 years ago

signingConfig signingConfigs.release

I'm gettting error: ERROR: Could not get unknown property 'release' for SigningConfig container. Open File