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

[Android] Build failed using React native 0.74.1 Compilation regarding Kotlin #17

Closed
naheedsa opened this issue May 4, 2024 · 7 comments
Assignees
Labels
Android bug Something isn't working

Comments

@naheedsa
Copy link

naheedsa commented May 4, 2024

Screenshot_20240504_161535

@pushpender-singh-ap
Copy link
Owner

Hi @naheedsa

  1. What is your environment device? (MacOS, Linux, Window)
  2. Can you please share the test repo?

@naheedsa
Copy link
Author

naheedsa commented May 4, 2024

Hi @naheedsa

  1. What is your environment device? (MacOS, Linux, Window)
  2. Can you please share the test repo?
  1. Using KDE Neon Linux, building for android
  2. Let me check it, we probably need to add your ssh key to access the repo

@pushpender-singh-ap
Copy link
Owner

Hey @naheedsa , just a heads-up: React Native version 0.74 introduced some significant changes to its new architecture. If it's convenient for you, could you possibly stick to using v0.73 for now?

@pushpender-singh-ap pushpender-singh-ap changed the title Build failed using React native 0.74.1 Compilation regarding Kotlin [Android] Build failed using React native 0.74.1 Compilation regarding Kotlin May 4, 2024
@pushpender-singh-ap pushpender-singh-ap self-assigned this May 4, 2024
@pushpender-singh-ap pushpender-singh-ap added bug Something isn't working Android labels May 4, 2024
@pushpender-singh-ap
Copy link
Owner

This issue has been fixed please install v1.1.0

@naheedsa
Copy link
Author

naheedsa commented Jun 2, 2024

Getting this error now: tried with both 1.1.0 and 1.2.0 react native version 0.73.8

BUILD FAILED in 7s
error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/stellarmate/Projects/test/new/stellarmateapp2/node_modules/@react-native-async-storage/async-storage/android/src/javaPackage/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/stellarmate/Projects/test/new/stellarmateapp2/node_modules/@react-native-camera-roll/camera-roll/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollPackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
e: file:///home/stellarmate/Projects/test/new/stellarmateapp2/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:9:40 Unresolved reference: ReactNativeScannerViewManagerInterface
e: file:///home/stellarmate/Projects/test/new/stellarmateapp2/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:10:40 Unresolved reference: ReactNativeScannerViewManagerDelegate
e: file:///home/stellarmate/Projects/test/new/stellarmateapp2/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:14:48 Unresolved reference: ReactNativeScannerViewManagerInterface
e: file:///home/stellarmate/Projects/test/new/stellarmateapp2/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:19:17 Unresolved reference: ReactNativeScannerViewManagerDelegate
e: file:///home/stellarmate/Projects/test/new/stellarmateapp2/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:30:3 'enableFlashlight' overrides nothing
e: file:///home/stellarmate/Projects/test/new/stellarmateapp2/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:34:3 'disableFlashlight' overrides nothing
e: file:///home/stellarmate/Projects/test/new/stellarmateapp2/node_modules/@pushpendersingh/react-native-scanner/android/src/main/java/com/pushpendersingh/reactnativescanner/ReactNativeScannerViewManager.kt:38:3 'releaseCamera' overrides nothing
Note: [2] Wrote GeneratedAppGlideModule with: [com.bumptech.glide.integration.okhttp3.OkHttpLibraryGlideModule, com.dylanvann.fastimage.FastImageOkHttpProgressGlideModule]
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details. FAILURE: Build failed with an exception. * What went wrong:
Execution failed for task ':pushpendersingh_react-native-scanner:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction > Compilation error. See log

@pushpender-singh-ap
Copy link
Owner

@naheedsa Are you using new architecture?

@pushpender-singh-ap
Copy link
Owner

@naheedsa Could you please share the example repository? It would greatly assist in debugging the error.

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

No branches or pull requests

2 participants