januslo / react-native-sunmi-inner-printer

http://docs.sunmi.com/htmls/index.html?lang=zh##V1文档资源 根据商米V1文档开发的热敏打印
MIT License
74 stars 120 forks source link

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

Open zsy6504 opened 4 years ago

zsy6504 commented 4 years ago

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 commented 4 years ago

Any help? @januslo

FelipeGangrel commented 4 years ago

Same error here

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

zsy6504 commented 4 years ago

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.

Jinentonik commented 4 years ago

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 commented 4 years ago

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 }

ronal2s commented 4 years ago

Same issue, any update?

Jinentonik commented 4 years ago

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

ronal2s commented 4 years ago

@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

amangoelfv commented 4 years ago

is downgrading the only option ?

amangoelfv commented 4 years ago

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

is it necessary to downgrade ?

mmilos028 commented 3 years ago

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.