januslo / react-native-sunmi-inner-printer

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

Hello, I have problems do not compile #20

Closed gsusalvarado closed 6 years ago

gsusalvarado commented 7 years ago

Thank you, for your time, I followed the steps for the installation when I run react-native run-android I get this message

1 error :react-native-sunmi-inner-printer:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 22.779 secs Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/android-setup.html

januslo commented 7 years ago

This is a plug-in for react native project, cannot run directly.

发自我的 iPhone

在 2017年11月6日,上午4:09,Jesus Alvarado notifications@github.com 写道:

Thank you, for your time, I followed the steps for the installation when I run react-native run-android I get this message

1 error :react-native-sunmi-inner-printer:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

What went wrong: Execution failed for task ':react-native-sunmi-inner-printer:compileReleaseJavaWithJavac'. Compilation failed; see the compiler error output for details.

Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED

Total time: 22.779 secs Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/android-setup.html

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

gsusalvarado commented 7 years ago

Hello, if I execute " react-native run-android " correctly , the error "\node_modules\react-native-sunmi-inner-printer\android\src\main\java\com\sunmi\innerprinter\SunmiInnerPrinterPackage.java:15: error: method does not override or implement a method from a supertype @Override" then I comment that line and I compile my project well, when I press the print button I get this message "print error.Attempt to invoke interface metohd 'void woyou.aidlservice.jiuiv5.IWoyouService.setAlignment(int,woyou.aidlservice.jiuiv5.Icallback) on a null object"... Thanks I need to test if it manages to print, otherwise I need native development

januslo commented 7 years ago

Are you testing with the sumi device?

发自我的 iPhone

在 2017年11月7日,上午1:19,Jesus Alvarado notifications@github.com 写道:

Hello, if I execute " react-native run-android " correctly , the error "\node_modules\react-native-sunmi-inner-printer\android\src\main\java\com\sunmi\innerprinter\SunmiInnerPrinterPackage.java:15: error: method does not override or implement a method from a supertype @override" then I comment that line and I compile my project well, when I press the print button I get this message "print error.Attempt to invoke interface metohd 'void woyou.aidlservice.jiuiv5.IWoyouService.setAlignment(int,woyou.aidlservice.jiuiv5.Icallback) on a null object"... Thanks I need to test if it manages to print, otherwise I need native development

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

gsusalvarado commented 7 years ago

Yes I have the sumi device

januslo commented 7 years ago

@gsusalvarado I am not sure the problem, have you tried the official demo? can them works?https://github.com/shangmisunmi/SunmiPrinterDemo

januslo commented 7 years ago

@gsusalvarado the line 15, which problem occurs should be the overriding the react-native api method. which version of react-native you are using >?

gsusalvarado commented 7 years ago

I just started with React-Native react-native-cli: 2.0.1 react-native: 0.49.5

gsusalvarado commented 7 years ago

Thanks, I already printed, I had to comment on that line 15

sugaith commented 5 years ago

please REPOEN the issue.. ON react-native 0.58 is not working for signed apk releases. react-native-cli: 2.0.1 react-native: 0.58.3

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

FAILURE: Build failed with an exception.

and it goes....

MoeThet20 commented 3 years ago

try react native version 0.61.3 and just install https://www.npmjs.com/package/react-native-sunmi-v2-printer npx i react-native-sunmi-v2-printer and use in your project it is work for me there is no need to link

davimateus1 commented 1 year ago

Hello, i have this error, how can I solve?

Error:

"react-native": "0.72.4", "@heasy/react-native-sunmi-printer": "^1.7.0"

[stderr] * What went wrong
[stderr] Could not determine the dependencies of task ':heasy_react-native-sunmi-printer:mergeReleaseGeneratedProguardFiles'.
[stderr] > Could not determine the dependencies of null.
[stderr] > Could not create task ':heasy_react-native-sunmi-printer:compileReleaseJavaWithJavac'.
[stderr] > In order to compile Java 9+ source, please set compileSdkVersion to 30 or above
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace
[stderr] > Run with --info or --debug option to get more log output
[stderr] > Run with --scan to get full insights.89[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 4m 27s

I'm having this error when running the eas build -p android --profile preview command, how can I solve it? I've tried a few things I've researched but none of them work.