简体   繁体   English

在React Native中释放apk时出现``react-native-gesture-handler''错误

[英]'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.

相关问题 未找到 react-native-gesture-handler 模块 - react-native-gesture-handler module was not found react native卡在配置react-native-gesture-handler中 - react native stuck in configuring react-native-gesture-handler React-native-gesture-handler swipeable 不适用于 Android - React-native-gesture-handler swipeable is not working on Android 如何修复 react-native-gesture-handler:compileDebugJavaWithJavac 失败 - How to fix react-native-gesture-handler:compileDebugJavaWithJavac Failed 任务 :react-native-gesture-handler:compileDebugJavaWithJavac FAILED - Task :react-native-gesture-handler:compileDebugJavaWithJavac FAILED 任务':react-native-gesture-handler:generateDebugRFile'的执行失败 - Execution failed for task ':react-native-gesture-handler:generateDebugRFile' 任务:react-native-gesture-handler:compileDebugKotlin FAILED - Task :react-native-gesture-handler:compileDebugKotlin FAILED 配置项目“:react-native-gesture-handler”时出现问题 - A problem occurred configuring project ':react-native-gesture-handler' 安装 react-navigation 和 react-native-gesture-handler 后,React Native 无法构建 - React Native Failed to build after Installing react-navigation and react-native-gesture-handler 安装react-native-gesture-handler后,React Native应用程序会继续停止 - React Native app keeps stopping after react-native-gesture-handler install
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM