HackerBuzz-ReactNative icon indicating copy to clipboard operation
HackerBuzz-ReactNative copied to clipboard

Build Error

Open iammelvin opened this issue 7 years ago • 3 comments

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

iammelvin avatar Jan 03 '18 16:01 iammelvin

@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

StreethawkNick avatar Jan 08 '18 05:01 StreethawkNick

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

iammelvin avatar Jan 10 '18 06:01 iammelvin

signingConfig signingConfigs.release

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

phungxuanvuong avatar Mar 06 '20 07:03 phungxuanvuong