You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C++ build system [clean] failed while executing:
/Users/datacom/Library/Android/sdk/cmake/3.22.1/bin/ninja
-C
/Users/datacom/Desktop/DTC/Example/android/app/.cxx/Debug/6v6g1git/armeabi-v7a
clean
from /Users/datacom/Desktop/DTC/Example/android/app
-- GLOB mismatch!
-- GLOB mismatch!
CMake Error at /Users/datacom/Desktop/DTC/Example/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:9 (add_subdirectory):
add_subdirectory given source
"/Users/datacom/Desktop/DTC/Example/node_modules/@10play/tentap-editor/android/build/generated/source/codegen/jni/"
which is not an existing directory.
Call Stack (most recent call first):
/Users/datacom/Desktop/DTC/Example/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
CMakeLists.txt:31 (include)
CMake Error at /Users/datacom/Desktop/DTC/Example/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:103 (target_link_libraries):
Cannot specify link libraries for target "react_codegen_RNTenTapViewSpec"
which is not built by this project.
Call Stack (most recent call first):
CMakeLists.txt:31 (include)
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
The text was updated successfully, but these errors were encountered:
duongnguyen17
changed the title
[BUG]: Cannot specify link libraries for target "react_codegen_RNTenTapViewSpec"
[BUG]: ./gradlew clean - Cannot specify link libraries for target "react_codegen_RNTenTapViewSpec"
Jan 17, 2025
After some investigation, I discovered that when running the command ./gradlew clean, the system will clean each module in a specific order (determined by autolink). The react-native-webview module is cleaned first, followed by the tentap-editor. However, the issue is that when react-native-webview is cleaned, it also cleans tentap-editor, causing the error. My temporary solution is to ignore the tentap-editor module during the gradlew clean process and then manually clean tentap-editor.
The commands are as follows: ./gradlew clean -x 10play_tentap-editor:clean ./gradlew :10play_tentap-editor:clean
./gradlew clean getting failed
FAILURE: Build failed with an exception.
Execution failed for task ':app:externalNativeBuildCleanDebug'.
C++ build system [clean] failed while executing:
/Users/datacom/Library/Android/sdk/cmake/3.22.1/bin/ninja
-C
/Users/datacom/Desktop/DTC/Example/android/app/.cxx/Debug/6v6g1git/armeabi-v7a
clean
from /Users/datacom/Desktop/DTC/Example/android/app
-- GLOB mismatch!
-- GLOB mismatch!
CMake Error at /Users/datacom/Desktop/DTC/Example/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:9 (add_subdirectory):
add_subdirectory given source
"/Users/datacom/Desktop/DTC/Example/node_modules/@10play/tentap-editor/android/build/generated/source/codegen/jni/"
which is not an existing directory.
Call Stack (most recent call first):
/Users/datacom/Desktop/DTC/Example/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
CMakeLists.txt:31 (include)
CMake Error at /Users/datacom/Desktop/DTC/Example/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:103 (target_link_libraries):
Cannot specify link libraries for target "react_codegen_RNTenTapViewSpec"
which is not built by this project.
Call Stack (most recent call first):
CMakeLists.txt:31 (include)
ninja: error: rebuilding 'build.ninja': subcommand failed
BUILD FAILED in 1s
15 actionable tasks: 5 executed, 10 up-to-date
The text was updated successfully, but these errors were encountered: