Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29599

Android Studio is building old version via Generate Signed bundle / APK

$
0
0

I am trying to build APK from Android studio 3.6.3 to test on the device as well as for publishing app on google play console, but I noticed, Its building APK with the old version, tried almost everything

By the way, the build is working fine on the built-in emulator, however, sometimes it's also building the old version but by removing the build folder it solves the problem.

build.gradle

// The old version name was 1.1defaultConfig {    applicationId "com.companyName"    minSdkVersion rootProject.ext.minSdkVersion    targetSdkVersion rootProject.ext.targetSdkVersion    versionCode 3    versionName "1.2"    missingDimensionStrategy 'react-native-camera', 'general'    multiDexEnabled true}

Versioning

► android: ./gradlew -version------------------------------------------------------------Gradle 5.6.4------------------------------------------------------------Build time:   2019-11-01 20:42:00 UTCRevision:     dd870424f9bd8e195d614dc14bb140f43c22da98Kotlin:       1.3.41Groovy:       2.5.4Ant:          Apache Ant(TM) version 1.9.14 compiled on March 12 2019JVM:          14.0.1 (Oracle Corporation 14.0.1+7)OS:           Mac OS X 10.14.6 x86_64

Tried solutions

  1. File > Invalidate cache/restart > Invalidate cache/restart
  2. Build > Clean project
  3. Run > Edit Configuration > app > general > before launch > Gradle-aware make

Please help, Thanks in advance


Viewing all articles
Browse latest Browse all 29599

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>