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

Cannot Compile the project after installing the react-native-sunmi-inner-printer #28

Closed santhoshkumarch closed 6 years ago

santhoshkumarch commented 6 years ago

:react-native-sunmi-inner-printer:processReleaseResources /home/sbit/Documents/repos/printExample/node_modules/react-native-sunmi-inner-printer/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/home/sbit/Documents/repos/printExample/node_modules/react-native-sunmi-inner-printer/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

/home/sbit/Documents/repos/printExample/node_modules/react-native-sunmi-inner-printer/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

/home/sbit/Documents/repos/printExample/node_modules/react-native-sunmi-inner-printer/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/home/sbit/Documents/repos/printExample/node_modules/react-native-sunmi-inner-printer/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

/home/sbit/Documents/repos/printExample/node_modules/react-native-sunmi-inner-printer/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

:react-native-sunmi-inner-printer:processReleaseResources FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 12.268 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/getting-started.html

This is the issue i am facing

januslo commented 6 years ago

it's a React native plugin, not the hold android project. You may create your RN project then install this plugin for testing.

santhoshkumarch commented 6 years ago

i am testing this plugin in RN only.

santhoshkumarch commented 6 years ago

What is the solution or give me the steps to install this plugin correctly in the RN project.

januslo commented 6 years ago

Ok create and make sure a new RN project run normally. Then install this plugin with the directions of Installation secrion if the readme file.

发自我的 iPhone

在 2018年7月6日,下午5:41,santhosh notifications@github.com 写道:

What is the solution or give me the steps to install this plugin correctly in the RN project.

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

santhoshkumarch commented 6 years ago

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

This is the error exactly i found. By removing the @override in that file then the plugin working fine

januslo commented 6 years ago

It’s about the RN version. Should be fixed in the master repo or source code but not the NPM repository. You may find the solution in the pull requests .

发自我的 iPhone

在 2018年7月6日,下午7:48,santhosh notifications@github.com 写道:

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

This is the error exactly i found. By removing the @override in that file then the plugin working fine

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

santhoshkumarch commented 6 years ago

Ok Thank you now its working.

yuensunn commented 6 years ago

Hi. I tried creating a new workable react native project version 0.56 with this plug in installed according to the instruction in the Readme file. However i still face the same issue.

FYI im developing this on a ubuntu 16.

januslo commented 6 years ago

@yuensunn plz see the reason and idea i answer before: https://github.com/januslo/react-native-sunmi-inner-printer/issues/28#issuecomment-403018167

It’s about the RN version. Should be fixed in the master repo or source code but not the NPM repository. You may find the solution in the pull requests .

You may install the plug-in with mast branch directly instead of NPM.

Further more, it's more easier for me to find and answer the question in a new issue ticket rather then the closed one.

yuensunn commented 6 years ago

Hey sorry for the inconvenience. I have fixed the issue. Thanks a lot.

On Wed, Aug 29, 2018 at 6:32 PM janus j k lu notifications@github.com wrote:

@yuensunn https://github.com/yuensunn plz see the reason and idea i answer before: #28 (comment) https://github.com/januslo/react-native-sunmi-inner-printer/issues/28#issuecomment-403018167

It’s about the RN version. Should be fixed in the master repo or source code but not the NPM repository. You may find the solution in the pull requests .

You may install the plug-in with mast branch directly instead of NPM.

Further more, it's more easier for me to find and answer the question in a new issue ticket rather then the closed one.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/januslo/react-native-sunmi-inner-printer/issues/28#issuecomment-416905900, or mute the thread https://github.com/notifications/unsubscribe-auth/AZfybZi_1kaZjZ5EFXUwVjwb5dD9uk_4ks5uVm3BgaJpZM4VFGmY .

-- Neoh Yuen Sun Game Programmer