Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build Release: Version code not found in manifest

I generated a project using React-Native and followed the official RN guide to publish to Play Store.

When I get to the buildRelease step. This outputs the following error:

Execution failed for task ':java:packageReleaseBundle'. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Version code not found in manifest.

When I use assembleRelease however, the build creates an apk without any issues. What am I missing?

The default config under app/build.gradle is configured as such:

defaultConfig {
    applicationId "com.company.appname"
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode 1
    versionName "1.0.0"
    missingDimensionStrategy 'react-native-camera', 'general'
}
like image 653
Bandwagoner Avatar asked Apr 17 '26 19:04

Bandwagoner


1 Answers

In my case, i had to disable enableSeparateBuildPerCPUArchitecture

def enableSeparateBuildPerCPUArchitecture = false
like image 52
Evans Munene Avatar answered Apr 19 '26 10:04

Evans Munene