react-native-sunmi-inner-printer icon indicating copy to clipboard operation
react-native-sunmi-inner-printer copied to clipboard

Task :react-native-sunmi-inner-printer:compileDebugJavaWithJavac FAILED

Open zsy6504 opened this issue 5 years ago • 11 comments
trafficstars

Here's the react and react-native version I use and I'm running everything on windows 10 with JDK 12: "react": "16.9.0", "react-native": "0.61.4", For some reason when I react-native run-android the generated java file \node_modules\react-native-sunmi-inner-printer\android\build\generated\aidl_source_output_dir\debug\compileDebugAidl\out\woyou\aidlservice\jiuiv5\IWoyouService.java is incomplete and has only 285 lines of code generated. image

zsy6504 avatar Feb 27 '20 22:02 zsy6504

Any help? @januslo

zsy6504 avatar Mar 01 '20 08:03 zsy6504

Same error here

"react": "16.9.0", "react-native": "0.61.3",

FelipeGangrel avatar Mar 03 '20 20:03 FelipeGangrel

Okay it's been some time I think the repo owner probably does not maintain it anymore. We've got a solution by going through the fork network of this repo. It looks like we were not the first one to face this issue. Use rn-sunmi-inner-printer package instead. It is a fork from this repo but it's updated and works with newer version of gradle.

zsy6504 avatar Jul 03 '20 19:07 zsy6504

The link that you have provided : https://www.npmjs.com/package/rn-sunmi-inner-printer has the same installation as this library.

Have you solved your issue? I have tried the link you have provided but still no luck.

Jinentonik avatar Jul 16 '20 07:07 Jinentonik

Okay it's been some time I think the repo owner probably does not maintain it anymore. We've got a solution by going through the fork network of this repo. It looks like we were not the first one to face this issue. Use rn-sunmi-inner-printer package instead. It is a fork from this repo but it's updated and works with newer version of gradle.

It does not work with me. My app version: "dependencies": { "@react-native-community/masked-view": "^0.1.10", "@react-navigation/bottom-tabs": "^5.7.0", "@react-navigation/drawer": "^5.8.5", "@react-navigation/material-top-tabs": "^5.2.13", "@react-navigation/native": "^5.7.0", "@react-navigation/stack": "^5.7.0", "react": "16.13.1", "react-native": "0.63.0", "react-native-gesture-handler": "^1.6.1", "react-native-reanimated": "^1.9.0", "react-native-safe-area-context": "^3.1.1", "react-native-screens": "^2.9.0", "react-native-tab-view": "^2.14.4", "react-native-vector-icons": "^7.0.0", "rn-sunmi-inner-printer": "^0.2.0" }, "devDependencies": { "@babel/core": "^7.8.4", "@babel/runtime": "^7.8.4", "@react-native-community/eslint-config": "^1.1.0", "babel-jest": "^25.1.0", "eslint": "^6.5.1", "jest": "^25.1.0", "metro-react-native-babel-preset": "^0.59.0", "react-test-renderer": "16.13.1" }, buildscript { ext { buildToolsVersion = "29.0.2" minSdkVersion = 16 compileSdkVersion = 29 targetSdkVersion = 29 }

Jinentonik avatar Jul 16 '20 13:07 Jinentonik

Same issue, any update?

ronal2s avatar Jul 16 '20 21:07 ronal2s

@ronal2s Need to use react native version 0.61.3 Latest version of react native does not support this.

Jinentonik avatar Jul 18 '20 06:07 Jinentonik

@ronal2s Need to use react native version 0.61.3 Latest version of react native does not support this.

Thanks!! Finally I got the build without issues

ronal2s avatar Jul 21 '20 02:07 ronal2s

is downgrading the only option ?

amangoelfv avatar Aug 01 '20 14:08 amangoelfv

@ronal2s Need to use react native version 0.61.3 Latest version of react native does not support this.

is it necessary to downgrade ?

amangoelfv avatar Aug 01 '20 14:08 amangoelfv

I solved similar problem by entering node_modules, into this library and then I modified all files under \woyou\aidlservice\jiuiv5*.aidl where I removed chineese characters / comments, for some reason during testing/building they prevented correct parsing of these files.

mmilos028 avatar Feb 03 '21 15:02 mmilos028