Closed BloodyMonkey closed 1 year ago
@BloodyMonkey Were you able to find a solution? I'm also facing this issue.
I am also facing this issue.
No but i suppose it’s from the codegen process, not generating required files Under investigation
This error alternates with this one, every other time
android/app/src/main/jni/MainApplicationModuleProvider.cpp:3:10: fatal error: 'rncli.h' file not found
Because android/app/build/generated/rncli/jni
folder, where rncli.cpp is, is not created
any solution to the same, we are also facing the same issue.
This gradle task from app/build.gradle
is never fired
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
Don't know why
Upgrading RN 0.66.0 to 0.70.5 and experiencing the same issue. iOS build worked fine after upgrading using good old upgrade helper, this issue is breaking the Android build. gradlew only builds work fine though.
Fixed by upgrading @react-native-community/cli-platform-android to 9.3.1 Files are now generated !
i'm facing this issue even using @react-native-community/cli-platform-android 9.3.1
@BloodyMonkey have u explicitly added the version library??
i'm facing this issue even using @react-native-community/cli-platform-android 9.3.1
same is for me, still stuck on the same
same issue...
Hi, I resolve this issue , I just downgrade my gradle plugin version to 7.2.1, it's work
classpath("com.android.tools.build:gradle:7.2.1")
@allen-hsu solution worked in our case also.
Hi, I resolve this issue , I just downgrade my gradle plugin version to 7.2.1, it's work
classpath("com.android.tools.build:gradle:7.2.1")
@allen-hsu i confirm, i tried to upgrade gradle to 7.3.0 and error came back
now after downgrading to 7.2.1, facing this issue https://github.com/facebook/react-native/issues/34871
Upgrading RN 0.66.0 to 0.70.5 and experiencing the same issue. iOS build worked fine after upgrading using good old upgrade helper, this issue is breaking the Android build. gradlew only builds work fine though.
@Viggyy did you get the solution on this, stuck for long here
any solution for this error?
ould not determine the dependencies of task ':app:compileCertDebugJavaWithJavac'.
Could not create task ':app:compileCertDebugKotlin'. Cannot convert the provided notation to a File or URI: [.../android/app/build/generated/source/codegen/java]. The following types/formats are supported:
- A String or CharSequence path, for example 'src/main/java' or '/usr/include'.
- A String or CharSequence URI, for example 'file:/usr/include'.
- A File instance.
- A Path instance.
- A Directory instance.
- A RegularFile instance.
- A URI or URL instance.
- A TextResource instance.
build.gradle file upgrade to classpath "com.android.tools.build:gradle:7.3.1"
Description
I'm trying to upgrade react-native version from 0.61.5 to 0.70.5
I used react native upgrade helper
After some days i was done with iOS, but now i'm struggling with Android, not able to build grade files.
I enabled Fabric and TurboMobules, but disabled Hermes (conflict with debugger and FireBase)
Gradle command to generate codegen has successfully completed.
Version
0.70.5
Output of
npx react-native info
System: OS: macOS 12.6 CPU: (8) arm64 Apple M1 Memory: 486.47 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 19.0.1 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.19.2 - /opt/homebrew/bin/npm Watchman: 2022.09.12.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0 Android SDK: Not Found IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9014738 Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild Languages: Java: 11.0.17 - /Users/bil/.jenv/shims/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.5 => 0.70.5 react-native-macos: Not Found
Steps to reproduce
Can't reproduce with a fresh project
Snack, code example, screenshot, or link to a repository
android/build.gradle
app/build.gradle
Gradle Error
Related Stackoverflow post https://stackoverflow.com/questions/74429839/could-not-create-task-reactandroidcompiledebugkotlin
Possible issue https://github.com/facebook/react-native/issues/35362