Surile / react-native-sunmi-printer

商米内置打印机
MIT License
44 stars 28 forks source link

Unable to build project after installing depedency please help #34

Closed Irtiza-Atiq closed 9 months ago

Irtiza-Atiq commented 9 months ago

I tried everything it gives same errors like gradle issue, sdk version below issue but everything is upto date i really need to use this depedency can someone guide me exact stepts to do so there are so many issues i am getting. Please help.

FAILURE: Build failed with an exception.

BUILD FAILED in 6s error Failed to install the app. Command failed with exit code 1: gradlew.bat tasks FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':tasks'. > Could not create task ':heasy_react-native-sunmi-printer:compileDebugJavaWithJavac'. > In order to compile Java 9+ source, please set compileSdkVersion to 30 or above Try:

Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 6s Task :gradle-plugin:compileKotlin UP-TO-DATE > Task :gradle-plugin:compileJava NO-SOURCE > Task :gradle-plugin:pluginDescriptors UP-TO-DATE > Task :gradle-plugin:processResources UP-TO-DATE > Task :gradle-plugin:classes UP-TO-DATE > Task :gradle-plugin:jar UP-TO-DATE > Task :gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE > Configure project :notifee_react-native :notifee_react-native @notifee/react-native found at D:\FreshPrjtest\testtt\node_modules\@notifee\react-native :notifee_react-native package.json found at D:\FreshPrjtest\testtt\node_modules\@notifee\react-native\package.json :notifee_react-native:version set from package.json: 7.8.0 (7,8,0 - 7008000) :notifee_react-native:android.compileSdk using custom value: 33 :notifee_react-native:android.targetSdk using custom value: 33 :notifee_react-native:android.minSdk using custom value: 21 :notifee_react-native:reactNativeAndroidDir D:\FreshPrjtest\testtt\node_modules\react-native\android > Task :tasks FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine wdwdwd wdwdwd if they come from your own scripts or plugins. See https://docs.gradle.org/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings 6 actionable tasks: 1 executed, 5 up-to-date.

davimateus1 commented 9 months ago

Did you get any solution? I'm having the following problem:

[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
Irtiza-Atiq commented 9 months ago

Hello there this does not work now in 2023 I ha e tried everything but luckily I got the printer working I just followed the documentation and created the native code of java to communicate with inner printer directly, it took me weeks to do that but finally my printer is working with my react native app. You have to create a bridge between native code and react native too. I can guide you with all that . I have created all the code snippets. Do you want to use it on sunmi v2 printer? Using react native?

On Tue, Oct 3, 2023, 1:04 AM Davi M. G. de Almeida @.***> wrote:

Did you get any solution? I'm having the following problem:

[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

— Reply to this email directly, view it on GitHub https://github.com/Surile/react-native-sunmi-printer/issues/34#issuecomment-1743677842, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZXZEVHQULAUF7C7STKJWPDX5MM4XAVCNFSM6AAAAAA5BPOBS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTGY3TOOBUGI . You are receiving this because you authored the thread.Message ID: @.***>

davimateus1 commented 9 months ago

The model I'm trying to get the printer to run is the K2 model from Sunmi, I've tried everything here too and I can't make any progress, I opened a few more issues to make a few more attempts, but I do accept knowing how you did to make this connection with the printer.

I'm using react native 0.72.4 to try to create this connection, I saw someone saying that if I generated an apk, it would work, I'm trying but I'm having these errors above. :/

Irtiza-Atiq commented 9 months ago

so what happens is that you get developer documentation with the printer device it has all the options to access the printer you don't even need any third party library All can be found on the official documentation and I learned this thing the hard way. Please share your WhatsApp I'll provide all the details and recordings there so you can have more possibilities to search from .

On Tue, Oct 3, 2023, 2:02 AM Davi M. G. de Almeida @.***> wrote:

The model I'm trying to get the printer to run is the K2 model from Sunmi, I've tried everything here too and I can't make any progress, I opened a few more issues to make a few more attempts, but I do accept knowing how you did to make this connection with the printer.

I'm using react native 0.72.4 to try to create this connection, I saw someone saying that if I generated an apk, it would work, I'm trying but I'm having these errors above. :/

— Reply to this email directly, view it on GitHub https://github.com/Surile/react-native-sunmi-printer/issues/34#issuecomment-1743760270, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZXZEVF37U3R25FHUD3GUXDX5MTVRAVCNFSM6AAAAAA5BPOBS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTG43DAMRXGA . You are receiving this because you authored the thread.Message ID: @.***>

davimateus1 commented 9 months ago

Follow me on instagram, @davimateus1 https://www.instagram.com/davimateus1/


De: Irtiza Atiq-ur-Rehman @.> Enviado: segunda-feira, 2 de outubro de 2023 18:12 Para: Surile/react-native-sunmi-printer @.> Cc: DAVI MATEUS GOMES DE ALMEIDA @.>; Comment @.> Assunto: Re: [Surile/react-native-sunmi-printer] Unable to build project after installing depedency please help (Issue #34)

so what happens is that you get developer documentation with the printer device it has all the options to access the printer you don't even need any third party library All can be found on the official documentation and I learned this thing the hard way. Please share your WhatsApp I'll provide all the details and recordings there so you can have more possibilities to search from .

On Tue, Oct 3, 2023, 2:02 AM Davi M. G. de Almeida @.***> wrote:

The model I'm trying to get the printer to run is the K2 model from Sunmi, I've tried everything here too and I can't make any progress, I opened a few more issues to make a few more attempts, but I do accept knowing how you did to make this connection with the printer.

I'm using react native 0.72.4 to try to create this connection, I saw someone saying that if I generated an apk, it would work, I'm trying but I'm having these errors above. :/

— Reply to this email directly, view it on GitHub https://github.com/Surile/react-native-sunmi-printer/issues/34#issuecomment-1743760270, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZXZEVF37U3R25FHUD3GUXDX5MTVRAVCNFSM6AAAAAA5BPOBS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTG43DAMRXGA . You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://github.com/Surile/react-native-sunmi-printer/issues/34#issuecomment-1743773719, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AP2A62TTDKQ7EHZHZYCTU6TX5MU4DAVCNFSM6AAAAAA5BPOBS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTG43TGNZRHE. You are receiving this because you commented.Message ID: @.***>

davimateus1 commented 9 months ago

so what happens is that you get developer documentation with the printer device it has all the options to access the printer you don't even need any third party library All can be found on the official documentation and I learned this thing the hard way. Please share your WhatsApp I'll provide all the details and recordings there so you can have more possibilities to search from . On Tue, Oct 3, 2023, 2:02 AM Davi M. G. de Almeida @.> wrote: The model I'm trying to get the printer to run is the K2 model from Sunmi, I've tried everything here too and I can't make any progress, I opened a few more issues to make a few more attempts, but I do accept knowing how you did to make this connection with the printer. I'm using react native 0.72.4 to try to create this connection, I saw someone saying that if I generated an apk, it would work, I'm trying but I'm having these errors above. :/ — Reply to this email directly, view it on GitHub <#34 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZXZEVF37U3R25FHUD3GUXDX5MTVRAVCNFSM6AAAAAA5BPOBS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTG43DAMRXGA . You are receiving this because you authored the thread.Message ID: @.>

I sent you an email, check, please