Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task react-native-smart-barcode:compileDebugJavaWithJavac #43

Open
uendar opened this issue Feb 21, 2019 · 7 comments
Open

Task react-native-smart-barcode:compileDebugJavaWithJavac #43

uendar opened this issue Feb 21, 2019 · 7 comments

Comments

@uendar
Copy link

uendar commented Feb 21, 2019

How can we deal with this issues ?

> Task :react-native-smart-barcode:compileDebugJavaWithJavac 
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
@xWalter0914
Copy link

Task :react-native-smart-barcode:compileDebugJavaWithJavac FAILED
file or directory 'Z:\project\qc\node_modules\react-native-smart-barcode\android\libs', not found
file or directory 'Z:\project\qc\node_modules\react-native-smart-barcode\android\src\debug\java', not found
file or directory 'Z:\project\qc\node_modules\react-native-smart-barcode\android\build\generated\source\aidl\debug', not found

I also encountered this problem,
Not solved

@wordBro
Copy link

wordBro commented Apr 4, 2019

Is there a solution?

@xWalter0914
Copy link

删除react-native-smart-barcode中报错的内容(
具体错误可以通过AS打开项目Android的目录下终端输入:
gradlew compileDebugJavaWithJavac

@wordBro
Copy link

wordBro commented Apr 4, 2019

应该去删除什么内容呢(是node_modules中D:\android_demo\camera\node_modules\react-native-smart-barcode\android\src\main\java\com\reactnativecomponent\barcode\RCTCapturePackage.java:41: 错误: 方法不会覆盖或实现超类型的方法),在项目中,可以使用react-native-smart-barcode完成扫一扫么,react-native-camera我也试了,也没有成功。

@xWalter0914
Copy link

按照设置https://www.jianshu.com/p/8e8bc89bfe2c配置
参考这个进行重新安装配置看看

@12343954
Copy link

12343954 commented May 6, 2019

comment this line 41 : "@OverRide", in RCTCapturePackage.java

image

@cnbluesboice
Copy link

按照配置之后 报错信息为Execution failed for task ':react-native-smart-barcode:compileDebugJavaWithJavac'.这个问题能帮忙解答一下吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants