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

Error during Release packaging, cannot use 'ApplicationVariant.getSigningConfig()' #8

Open
xiaojiangclassmate opened this issue Mar 6, 2024 · 3 comments
Labels
solved The issue having tag 'solved' are either resolved by the original poster (OP) or by another party.

Comments

@xiaojiangclassmate
Copy link

./gradlew clean :app:resChiperRelease --stacktrace
error:

Execution failed for task ':app:resChiperRelease'.
> Cannot invoke "com.android.builder.model.SigningConfig.getStoreFile()" because the return value of "com.android.build.gradle.api.ApplicationVariant.getSigningConfig()" is null

@goldfish07
Copy link
Owner

have you declared signingConfigs in app/build.gradle ?

  android {
  signingConfigs {
        release {
            storeFile file("path_to_keystore.jks")
            keyAlias 'alias***'
            keyPassword 'ayus***'
            storePassword '***'
        }
    }
    
   buildTypes {
      release {
            signingConfig signingConfigs.release
        }
    }
 }

@xiaojiangclassmate
Copy link
Author

I declared it, but the signature information is stored in the configuration file and read using Properties.

@goldfish07
Copy link
Owner

check this sample https://github.com/goldfish07/ResChiper-sample

@goldfish07 goldfish07 added the solved The issue having tag 'solved' are either resolved by the original poster (OP) or by another party. label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved The issue having tag 'solved' are either resolved by the original poster (OP) or by another party.
Projects
None yet
Development

No branches or pull requests

2 participants