react-native-onesignal icon indicating copy to clipboard operation
react-native-onesignal copied to clipboard

Execution failed for task ':react-native-onesignal:generateDebugRFile'.

Open vt978 opened this issue 3 years ago • 2 comments

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 Screenshot 2022-08-12 at 1 52 03 PM

Environment

  1. react-native-onesignal : 4.0.6
  2. react-native: 0.60.5
  3. react: 16.8.6

Steps to Reproduce Issue:

  1. Followed docs and used npm

vt978 avatar Aug 12 '22 05:08 vt978

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 avatar Aug 12 '22 22:08 nan-li

@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 ?

vt978 avatar Aug 13 '22 04:08 vt978

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

vt978 avatar Aug 15 '22 02:08 vt978

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.

nan-li avatar Aug 15 '22 02:08 nan-li