Anilkumar iOS Developer
Anilkumar iOS Developer

Reputation: 3755

'android.disableResourceValidation=true' is experimental and unsupported in react native

I am doing react native application. While creating android apk file getting following error

WARNING: The option setting 'android.disableResourceValidation=true' is experimental and unsupported.
The current default is 'false'.

I have found my gradle.properties following

android.disableResourceValidation=true

Even, I tried to set false, But, Still same issue getting.

I have knowledge in iOS, But, Android no idea.

Any suggestions?

Upvotes: 1

Views: 4417

Answers (2)

Suprabhat Kumar
Suprabhat Kumar

Reputation: 685

go to gradle.properties and change it to android.enableSeparateAnnotationProcessing=false. It worked in my case.

Upvotes: 3

Matheus Mello
Matheus Mello

Reputation: 320

for me works and I am sharing with you:

When Proguard is enabled (which it is by default for Android release builds), it causes runtine error To avoid this, add an exception to android/app/proguard-rules.pro:

-keep public class com.horcrux.svg.** {*;}

enter image description here

Try build your app again.

Upvotes: 0

Related Questions