react-native-onesignal
react-native-onesignal copied to clipboard
Execution failed for task ':react-native-onesignal:generateDebugRFile'.
Description:
After several days of inactivity of my project, i wanted to build a released version of it. No other changes were made in that time other than api url changes and now i'm facing this problem. Tested other projects with almost same environment that was working before also faced this problem. This happen both in debug and release

Environment
- react-native-onesignal : 4.0.6
- react-native: 0.60.5
- react: 16.8.6
Steps to Reproduce Issue:
- Followed docs and used npm
Hi @vt978,
When you say that other projects are also facing this problem, are they also using OneSignal at all?
Did you already try a clean build in Android Studio by going to File > "Invalidate Caches / Restart ...". Then do a clean build after restarting.
@nan-li , yep, they were using onesignal also with similar environment such as onesignal, react native versions etc. Some of them were working recently up to this problem occur.
I'm tried upgrade/downgrade onesignal which didnt work. Only tried ./gradlew clean, is it the same as "Invalidate Caches / Restart ..." ? If no, is there any way to do it without android studio ?
Closing issue, unsure of what specified reason but the gradle dependencies below was causing the issues although it was working just fine several days ago classpath 'com.android.tools.build:gradle:3.4.2' distributionUrl=https://services.gradle.org/distributions/gradle-6.2-all.zip
I changed it and it was working again classpath 'com.android.tools.build:gradle:3.6.3' distributionUrl=https://services.gradle.org/distributions/gradle-6.3-all.zip
Good to hear it is resolved for you. I see the original error mentions work-runtime:2.8.0-alpha03.
That version was released on August 10, 2022, and probably is what affected your build.