Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failing on android #26

Closed
mak12 opened this issue Jul 24, 2024 · 11 comments
Closed

Build failing on android #26

mak12 opened this issue Jul 24, 2024 · 11 comments
Labels
bug Something isn't working old architecture

Comments

@mak12
Copy link

mak12 commented Jul 24, 2024

Current behaviour

After installing this library build is failing on android
/Users/kawee/Desktop/work/insol/InsolClientApp/android/app/build/generated/assets/createBundleStagingDebugJsAndAssets/index.android.bundle:162057:65: warning: the variable "Character" was not declared in function "allNumberGroupsRemainGrouped" ...rRegion(region, true) != null && Character.isDigit(normalizedCandidate.cha... ^~~~~~~~~ e: file:///Users/kawee/Desktop/work/insol/InsolClientApp/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:9:40 Unresolved reference: ReactNativeScannerViewManagerInterface e: file:///Users/kawee/Desktop/work/insol/InsolClientApp/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:10:40 Unresolved reference: ReactNativeScannerViewManagerDelegate e: file:///Users/kawee/Desktop/work/insol/InsolClientApp/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:14:48 Unresolved reference: ReactNativeScannerViewManagerInterface e: file:///Users/kawee/Desktop/work/insol/InsolClientApp/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:19:17 Unresolved reference: ReactNativeScannerViewManagerDelegate e: file:///Users/kawee/Desktop/work/insol/InsolClientApp/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:30:3 'enableFlashlight' overrides nothing e: file:///Users/kawee/Desktop/work/insol/InsolClientApp/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:34:3 'disableFlashlight' overrides nothing e: file:///Users/kawee/Desktop/work/insol/InsolClientApp/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:38:3 'releaseCamera' overrides nothing FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':pushpendersingh_react-native-scanner:compileDebugKotlin'.

Expected behaviour

How to reproduce?

  • Install library
  • run using react-native run-android

What have you tried so far?

Your Environment

buildToolsVersion = "34.0.0" minSdkVersion = 21 compileSdkVersion = 34 targetSdkVersion = 34

software version
ios x
android x
react-native 0.73.5
@pushpendersingh/react-native-scanner x.x.x
node x.x.x
npm or yarn x.x.x
@mak12 mak12 added the bug Something isn't working label Jul 24, 2024
@pushpender-singh-ap
Copy link
Owner

Hi @mak12, can you please let me know are you using Mac Machine or Window Machine?

@oularrea
Copy link

oularrea commented Sep 14, 2024

Hi @mak12, can you please let me know are you using Mac Machine or Window Machine?

Hi @pushpender-singh-ap , I have the same problem as mentioned here, in my case I use a Mac to develop.

image

System:
OS: macOS 14.6.1
CPU: (10) arm64 Apple M2 Pro
Memory: 55.83 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.5.0
path: /usr/local/bin/node
Yarn:
version: 4.1.1
path: /opt/homebrew/bin/yarn
npm:
version: 10.2.3
path: ~/.nvm/versions/node/v20.10.0/bin/npm
Watchman:
version: 2024.06.10.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.13.0
path: /usr/local/bin/pod

React Native Version: 0.73.9

@mak12
Copy link
Author

mak12 commented Sep 15, 2024

Using mac here aswell.

@pushpender-singh-ap
Copy link
Owner

@oularrea @mak12 are you using the new architecture? in you project

@oularrea
Copy link

@pushpender-singh-ap no, I not use new architecture

@pushpender-singh-ap
Copy link
Owner

@oularrea this is why you are facing this issue this library only for new architecture.

@pushpender-singh-ap
Copy link
Owner

If you wanna use new architecture please read the readme and follow the step for using this library.

@oularrea
Copy link

@pushpender-singh-ap
Then you should also specify in the readme if it is so important which version of React Native this library works for.

since this is not clear and brings a lot of confusion

@pushpender-singh-ap
Copy link
Owner

@oularrea this library work 0.70+ react native version i don't test this on latest version but pretty sure it's work well.

@oularrea
Copy link

@mak12 , I confirm that I have updated to the latest version 0.75.3 of RN and enabled the new architecture and it worked.

@pushpender-singh-ap It's about giving better feedback to the community, not being so arrogant with the answers.

@pushpender-singh-ap
Copy link
Owner

@oularrea Thank you for your input. I'll keep that in mind and aim for clearer, more respectful communication moving forward. Let's work together to create a better environment for everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working old architecture
Projects
None yet
Development

No branches or pull requests

3 participants