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

Does not build 0.60 React Native

Open elmbrent opened this issue 5 years ago • 1 comments

Cannot get building with React Native 0.60 for Android:

Error bellow

`>

Task :react-native-mail:compileDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings 66 actionable tasks: 2 executed, 64 up-to-date /Users/admin/Projects/Repos/WaveViewer/node_modules/react-native-mail/android/src/main/java/com/chirag/RNMail/RNMailModule.java:8: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ /Users/admin/Projects/Repos/WaveViewer/node_modules/react-native-mail/android/src/main/java/com/chirag/RNMail/RNMailModule.java:104: error: cannot find symbol Uri p = FileProvider.getUriForFile( ^ symbol: variable FileProvider location: class RNMailModule Note: /Users/admin/Projects/Repos/WaveViewer/node_modules/react-native-mail/android/src/main/java/com/chirag/RNMail/RNMailModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 2 errors

FAILURE: Build failed with an exception.

`

elmbrent avatar Jul 14 '19 18:07 elmbrent

@elmbrent it worked for me. Try cd ios && pod install before running the app.

ricbermo avatar Jul 18 '19 14:07 ricbermo