alwx / react-native-photo-view

Pinch-to-zoom view for React Native (both iOS and Android)
MIT License
815 stars 434 forks source link

WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. #200

Open Jarzka opened 4 years ago

Jarzka commented 4 years ago

I get the following warning when upgrading from React Native 0.59.10 to 0.62.2:

WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed soon. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
...
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

I useimplementation project(':react-native-photo-view') in my Gradle file and still get this error. Do you have an idea what might cause this warning?

hariyanto17 commented 2 years ago

open android/app/src/main/AndroidManifest.xml

add xmlns:tools="http://schemas.android.com/tools" in to manifest and add tools:replace="android:allowBackup" to application