18

In react-native, I am trying to generate signed APK following their instructions. But when I execute this ./gradlew assembleRelease command it shows me this error. Error details.

My platform:

  • OS: Windows 10
  • node: 8.9.1
  • npm: 5.5.1
  • react: 16.3.2
  • react-native: 0.55

Can anybody tell me, why I am getting this error?

I got a solution here by adding android.enableAapt2=false into android/gradle.properties. Apparently, I read that it's only a temporary solution. No way to solve it with others solutions?

Arif
  • 6,094
  • 4
  • 49
  • 81

1 Answers1

5

Add org.gradle.configureondemand=true to android/gradle.properties

Moesio
  • 3,100
  • 1
  • 27
  • 36
  • 7
    I would not recommend using this. Because of RN Documentation says: ```Note: Make sure gradle.properties does not include org.gradle.configureondemand=true as that will make the release build skip bundling JS and assets into the APK.```. (https://facebook.github.io/react-native/docs/signed-apk-android#generating-the-release-apk) – usrbowe Oct 02 '18 at 09:51