Execution failed for task ':nozbe_watermelondb:generateDebugRFile'.
Hi im using Kotlin Version "1.7.10" and im getting this error on build
Execution failed for task ':nozbe_watermelondb:generateDebugRFile'.
> A failure occurred while executing com.android.build.gradle.internal.res.GenerateLibraryRFileTask$GenerateLibRFileRunnable
> K:\easyscript\testing\node_modules\@nozbe\watermelondb\native\android\build\intermediates\local_only_symbol_list\debug\R-def.txt
I have similar problem with version React Native version 0.69.4. Watermelondb version ^0.24.1-6
I have also faced this issue with
Watermelondb version ^0.24.0 System: OS: macOS 13.0.1 CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz Memory: 14.48 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm Watchman: Not Found Managers: CocoaPods: 1.11.3 - /Users/tk-lpt-0684/.rvm/rubies/ruby-2.7.5/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: 2022.1 AI-221.6008.13.2211.9477386 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 17.0.5 - /Library/Java/JavaVirtualMachines/openjdk-17.jdk/Contents/Home/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.0.0 => 18.0.0 react-native: 0.69.3 => 0.69.3
I found solutions its work for me use commands to generate the build instead of Android Studio
first, clean the project build folder then generate the build
-> ./gradlew clean
-> ./gradlew bundleRelease // for .aab
-> ./gradlew assembleRelease // for .apk
after the build is generated you find the build :
.aab -> android/app/build/outputs/bundle/release .apk -> android/app/build/outputs/apk/release