Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails due to invalid signing configuration #28

Open
honggoff opened this issue Sep 21, 2017 · 3 comments
Open

Build fails due to invalid signing configuration #28

honggoff opened this issue Sep 21, 2017 · 3 comments
Labels

Comments

@honggoff
Copy link
Contributor

When building with the gradle wrapper, I get the following error:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/hong/git/passman-android/app/build.gradle' line: 11

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

Indeed the signing configurations reference these properties ALPHA_STORE, ALPHA_STORE_PASSWORD, etc, the same for the release config.

Did you mean to use environment variables, or how do you set these properties?

Also, there is a build type debubug, which I believe is a typo.

@seddarj
Copy link
Contributor

seddarj commented Sep 24, 2017

You need to create a gradle.properties file based on the gradle.properties.example file. The ALPHA_STORE property is the path to a keystore. You can create a keystore through Android Studio if you need to (Build > Generate Signed APK > Create New).

@animalillo
Copy link
Collaborator

nah, the build types are fine as they are, and yes, as @seddarj said, you need to copy the exmple gradle.properties.example to a gradle.properties and set there the path to your desired keystore and keys for the build types you gonna use.

Let us know if you manage to compile it so we can close the issue or give some more help! :D

@honggoff
Copy link
Contributor Author

Thanks for the hint about the example properties file, for some reason I missed that. I am now able to build the debubug build type. I will probably add these instructions to the Readme file and create a pull request for the next clueless person.

Unfortunately the debug build type is broken, running ./gradlew assebleDebug fails with

.../app/build/intermediates/manifests/full/armabi/debug/AndroidManifest.xml:17:24-40: AAPT: No resource found that matches the given name (at 'label' with value '@string/app_name').

Is there some other trick I'm missing or are you not supposed to use the debug build type?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants