Closed AhmedCommando closed 2 years ago
3.7.0 is compatible with AGP 7.2
@SUPERCILEX i also tested it and the apk is published now but it doesnt work with a runtime exception. besides that the version code is not getting updgraded in google play.
in the picture below, that should be 3.0.1, 3.0.2 and version code should be 2.
am also struggling with this part:
outputProcessor { versionNameOverride = "$versionNameOverride.$versionCode" }
in 3.7.0 with com.android.tools.build:gradle:7.1.0.
No signature of method: build_8rqezoxnyv629gkbj4bp9rqf.play() is applicable for argument types: (build_8rqezoxnyv629gkbj4bp9rqf$_run_closure2) values: [build_8rqezoxnyv629gkbj4bp9rqf$_run_closure2@2e72c99a] Possible solutions: any(), apply(groovy.lang.Closure), apply(java.util.Map), copy(groovy.lang.Closure), copy(org.gradle.api.Action), apply(groovy.lang.Closure)
Can you provide an example of how it should be done with 3.0.7 and 7.2.2 ?
If you're migrating from an old version, the easiest way to get going will be to look at the readme for the most up-to-date examples: https://github.com/Triple-T/gradle-play-publisher#post-processing-outputs-sanitized-by-auto-resolution
@SUPERCILEX yes of course i tried that one but i get build errors with it.
Error:
No signature of method: build_1sdcrwjj6jcjvqna6rts6sqtg.androidComponents() is applicable for argument types: (build_1sdcrwjj6jcjvqna6rts6sqtg$_run_closure4) values: [build_1sdcrwjj6jcjvqna6rts6sqtg$_run_closure4@4a9e7f2c]
i changed my code to this.
` applicationVariants.all { variant -> variant.outputs.each { output -> def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] def abi = output.getFilter(OutputFile.ABI)
if (abi != null) {
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
output.versionNameOverride = "$versionNameOverride.$versionCode"
}
}
}`
the version code is not getting updated, and the version name also is not auto incrementing like before
@SUPERCILEX am suspecting it to be related to this issue here 858
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
After upgrading to react-native 0.67.4 from 0.63.4 i followed the helper with instructed that we need to upgrade gradle version to 7.2. Since then my gitlab ci is failing while trying to publish after a successful build.
If any information is needed please let me know, it is possible that i overlooked something, if there is any documentation or links to a tutorial that can help me out, that would be great.
I already spent more than a week trying and consumed many ci build minutes. thank you
How To Reproduce
Versions
My pipeline was a success before with version 2.4.1, tried to upgrade it to 3.0.0 also and got the same issue I also tried with upgrading my gradle wrapper to 7.2.2 and gradle plugin and same.
Tasks executed
What tasks did you run? For example,
publishBundle
.my command is calling pre release then release.
Expected behavior
Publishing my apk to google play.
Additional context (if a crash, provide stack trace)
Add any other context about the problem here. If this bug is a crash, run the task with
--stacktrace
to get the full context.Am suspecting the issue to be related to this: