-
Notifications
You must be signed in to change notification settings - Fork 24k
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
Execution failed for task ':app:mergeDexRelease' in Android #33670
Comments
Same here but on 0.68.1 Ubuntu Linux, curious what fixed it for you in the end |
@chengjunzhang1219 I've also encountered this problem. Could you please explain how it was fixed? |
@Arkkeeper
Specially this line
The jsRootDir should be correct path which includes only js files. |
Thanks! |
nicely done ^ it was the same for me |
nice |
hello, I have same error... when I run from Android Studio the app is working... and when I try from terminal I have this error: My bundle.gradle: `buildscript { apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' project.ext.envConfigFiles = [ apply plugin: "com.android.application" apply plugin: "com.google.gms.google-services" import com.android.build.OutputFile /**
project.ext.react = [ apply from: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../react.gradle") /**
/**
/**
/**
/**
android {
} dependencies {
implementation 'com.google.android.gms:play-services-base:17.2.1'
implementation 'com.huawei.hms:push:6.3.0.304' if (isNewArchitectureEnabled()) { // Run this once to be able to run the application with BUCK apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle"); apply from: "./eas-build.gradle" apply plugin: "kotlin-android" def isNewArchitectureEnabled() { I don't know what methods to try... I lost 2 days with this issue... Thank you |
Description
I can not generate Android release apk with enabling of new architecture even though it works well on debug mode.
I am getting this error while generating release apk.
Could you please let me know how i can resolve this issue.
Version
0.68
Output of
npx react-native info
React Native 0.68
Apple M1 Chip
Android studio
Steps to reproduce
I can not generated the release apk even it works well in debug mode.
Snack, code example, screenshot, or link to a repository
Here is my build gradle
The text was updated successfully, but these errors were encountered: