[英]'react-native-gesture-handler' error when release apk in react native
I want to release my project and generate .apk file. 我想发布我的项目并生成.apk文件。 I flowed react native doc but after use gradlew assembleRelease
command in terminal this error occurred. 我流了反应本机文档,但在终端中使用gradlew assembleRelease
命令后,发生此错误。 how to fixed it? 如何解决呢?
Configure project :app WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. 配置项目:app警告:配置'compile'已过时,已被'implementation'和'api'代替。 It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html 它将在2018年底删除。有关更多信息,请参见: http : //d.android.com/r/tools/update-dependency-configurations.html
Task :react-native-gesture-handler:compileReleaseJavaWithJavac Note: C:\\dev\\react workSpace\\SafarBeCom\\node_modules\\react-native-gesture-handler\\android\\src\\main\\java\\com\\swmansion\\gesturehandler\\react\\RNGestureHandlerButtonViewManager.java uses or overrides a deprecated API. 任务:react-native-gesture-handler:compileReleaseJavaWithJavac注意:C:\\ dev \\ react workSpace \\ SafarBeCom \\ node_modules \\ react-native-gesture-handler \\ android \\ src \\ main \\ java \\ com \\ swmansion \\ gesturehandler \\ react \\ RNGestureHandlerButtonViewManager .java使用或覆盖已弃用的API。 Note: Recompile with -Xlint:deprecation for details. 注意:有关详细信息,请使用-Xlint:deprecation重新编译。 Note: Some input files use unchecked or unsafe operations. 注意:某些输入文件使用未经检查或不安全的操作。 Note: Recompile with -Xlint:unchecked for details. 注意:使用-Xlint:unchecked重新编译以获取详细信息。
I went through this, you need to change in the app/build.gradle
file, in the dependencies part, change: 我经历了这一点,您需要在app/build.gradle
文件中进行更改,在依赖项部分中进行更改:
...
dependencies {
compile project(':react-native-gesture-handler')
}
...
to: 至:
...
dependencies {
implementation project(':react-native-gesture-handler')
}
...
AND: 和:
you need change all of compile
sentences of your project to implementation. 您需要将项目的所有compile
语句更改为实施。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.