react-native-blur icon indicating copy to clipboard operation
react-native-blur copied to clipboard

[Android] expected buildFiles file 'CMakeLists.tx' to exist

Open bulkinav opened this issue 1 year ago • 13 comments

When I try build the project with 'newArchEnabled=true', I get the following error:

[CXX1409] /android/app/.cxx/Debug/v20284m3/armeabi-v7a/android_gradle_build.json : expected buildFiles file '/node_modules/@react-native-community/blur/android/build/generated/source/codegen/jni/CMakeLists.txt' to exist

Clean / rebuild doesn't solve the problem.

react-native: 0.71.4 react-native-community/blur: 4.3.0

gradle: 7.5.1 gradle plugin: 7.4.2

bulkinav avatar Mar 19 '23 08:03 bulkinav

I have the same bug, did you find any workaround, thanks. @bulkinav

bilal-korir avatar Mar 25 '23 12:03 bilal-korir

I'm also getting the same issue. Any update on this?

Abhishek2250 avatar Apr 24 '23 08:04 Abhishek2250

I am also having this issue when setting newArchEnabled=true for Android.

using "react-native": "^0.71.6"

snamstorm avatar Apr 24 '23 08:04 snamstorm

I am also seeing this error message for react-native 0.71.6

jwarshaw avatar Apr 25 '23 18:04 jwarshaw

I have the same error using react-native 0.71.8 and newArch for Android

remi-vg avatar May 11 '23 15:05 remi-vg

just remove android/app/.cxx folder and try to rebuild

Ashalbulk avatar Jun 02 '23 23:06 Ashalbulk

just remove android/app/.cxx folder and try to rebuild

Does not work with ./gradlew assembleRelease

ravindraguptacapgemini avatar Jul 09 '23 11:07 ravindraguptacapgemini

just remove android/app/.cxx folder and try to rebuild

Does not work with ./gradlew assembleRelease

ravindraguptacapgemini avatar Jul 09 '23 11:07 ravindraguptacapgemini

just remove android/app/.cxx folder and try to rebuild

I think this worked for me. Can you explain why .cxx could be the problem here?

kimjisena avatar Oct 30 '23 09:10 kimjisena

There are 2 solutions i found 1)set newArchEnabled=false in gradle.properties(initially it ill be true) 2)remove android/app/.cxx folder

but i dont know which would be better! if anyone knows please let me know

anazcodesap avatar May 09 '24 09:05 anazcodesap

Workaround: I've had manually run ./gradlew generateCodegenArtifactsFromSchema in the android folder and now it seems to be working...

Originally posted by @saczx in https://github.com/react-native-async-storage/async-storage/issues/1070#issuecomment-1999653053

sendyputra avatar Jun 29 '24 05:06 sendyputra

Solution from @sendyputra actually works, it generates all the required C++ artifacts and error goes away. There should be a bug in react-native which prevents this task from running somehow

andrii-drobiazko avatar Aug 28 '24 09:08 andrii-drobiazko