upgrade-support
upgrade-support copied to clipboard
Missing index.android.bundle into app bundle after upgrate to com.android.tools.build:gradle:3.5.3
Environment
System: OS: macOS 10.15.2 CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz Memory: 128.54 MB / 16.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 11.10.0 - /usr/local/bin/node Yarn: 1.13.0 - /usr/local/bin/yarn npm: 6.7.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 Android SDK: API Levels: 23, 27, 28, 29 Build Tools: 26.0.2, 27.0.3, 28.0.3, 29.0.2 System Images: android-19 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-27 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.0 AI-193.6911.18.40.6514223 Xcode: 11.3/11C29 - /usr/bin/xcodebuild Languages: Java: 1.8.0_201 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: 0.63.0-rc.1 => 0.63.0-rc.1 npmGlobalPackages: react-native: Not Found
Upgrading version
0.61.5 => 0.63.0-rc.1
Description
We're using flavors for our different apps versions. After upgrading com.android.tools.build:gradle:3.4.2 => com.android.tools.build:gradle:3.5.3 and distributionUrl=https://services.gradle.org/distributions/gradle-5.5-all.zip => distributionUrl=https://services.gradle.org/distributions/gradle-6.2-all.zip
We have a problem with the generation of the app bundle.
Now the name in no more app.aab but app-staging.aab (Correct because is a change of the new gradle). Our Problem is that into the app-staging.aab there is no more, under base/assets the index.android.bundle
Reproducible demo
We have had followed the upgrade helper. into the build gradle we have this configuration. productFlavors { prod {
}
staging {
applicationId 'com.app.staging'
resValue "string", "build_config_package", "com.app.staging"
}
}
And run ./gradlew clean && ./gradlew bundleStagingRelease