axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
931 stars 205 forks source link

Lua test failed for android #2223

Closed kinjar1988 closed 4 weeks ago

kinjar1988 commented 1 month ago

I run lua test in android studio for android build but below error is generating and build failed. Help me to solve this error. I followed all the guides for setup for android. My os is windows and java 17 is installed.

Executing tasks: [:LuaTests:assembleDebug] in project C:\Axmol_Root\tests\lua-tests\proj.android

Starting Gradle Daemon... Gradle Daemon started in 2 s 459 ms Determine ENGINE_JAVA_LIBPATH with system env var AX_ROOT

Configure project :LuaTests Using sdk.dir=C:\Users\Admin\AppData\Local\Android\Sdk from local.properties Using found ndk (revision=23.2.8568313,path=C:\Users\Admin\AppData\Local\Android\Sdk\ndk\23.2.8568313) Using found newer cmake (version=3.30.5,path=C:\Users\Admin\AppData\Local\Android\Sdk\cmake\3.30.5\bin\cmake.exe), (minimum required is: 3.23.0)

Task :LuaTests:preBuild UP-TO-DATE Task :LuaTests:preDebugBuild UP-TO-DATE Task :LuaTests:mergeDebugNativeDebugMetadata NO-SOURCE Task :libaxmol:preBuild UP-TO-DATE Task :libaxmol:preDebugBuild UP-TO-DATE Task :libaxmol:compileDebugAidl UP-TO-DATE Task :libaxmol:generateDebugResValues UP-TO-DATE Task :libaxmol:generateDebugResources UP-TO-DATE Task :libaxmol:packageDebugResources UP-TO-DATE Task :libaxmol:parseDebugLocalResources UP-TO-DATE Task :libaxmol:generateDebugRFile UP-TO-DATE Task :libaxmol:javaPreCompileDebug UP-TO-DATE Task :libaxmol:compileDebugJavaWithJavac UP-TO-DATE Task :libaxmol:bundleLibCompileToJarDebug UP-TO-DATE Task :libaxmol:mergeDebugJniLibFolders UP-TO-DATE Task :libaxmol:mergeDebugNativeLibs NO-SOURCE Task :libaxmol:copyDebugJniLibsProjectOnly UP-TO-DATE Task :LuaTests:configureCMakeDebug[arm64-v8a] Task :LuaTests:buildCMakeDebug[arm64-v8a][lua-tests] Task :LuaTests:externalNativeBuildDebug Task :LuaTests:copyDebugContentToAssets Task :LuaTests:javaPreCompileDebug UP-TO-DATE Task :libaxmol:compileDebugLibraryResources UP-TO-DATE Task :libaxmol:writeDebugAarMetadata UP-TO-DATE Task :LuaTests:checkDebugAarMetadata UP-TO-DATE Task :LuaTests:generateDebugResValues UP-TO-DATE Task :LuaTests:mapDebugSourceSetPaths UP-TO-DATE Task :LuaTests:generateDebugResources UP-TO-DATE Task :LuaTests:mergeDebugResources UP-TO-DATE Task :LuaTests:packageDebugResources UP-TO-DATE Task :LuaTests:parseDebugLocalResources UP-TO-DATE Task :LuaTests:createDebugCompatibleScreenManifests UP-TO-DATE Task :libaxmol:extractDeepLinksDebug UP-TO-DATE Task :libaxmol:processDebugManifest UP-TO-DATE Task :LuaTests:extractDeepLinksDebug UP-TO-DATE Task :LuaTests:processDebugMainManifest UP-TO-DATE Task :LuaTests:processDebugManifest UP-TO-DATE Task :LuaTests:processDebugManifestForPackage UP-TO-DATE Task :LuaTests:processDebugResources UP-TO-DATE

Task :LuaTests:compileDebugJavaWithJavac FAILED Java compiler version 21 has deprecated support for compiling with source/target version 8. Try one of the following options:

  1. [Recommended] Use Java toolchain with a lower language version
  2. Set a higher source/target version
  3. Use a lower version of the JDK running the build (if you're not using Java toolchain) For more details on how to configure these settings, see https://developer.android.com/build/jdks. To suppress this warning, set android.javaCompile.suppressSourceTargetDeprecationWarning=true in gradle.properties. warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. C:\Axmol_Root\tests\lua-tests\proj.android\app\src\org\axmol\lua_tests\AppActivity.java:56: error: cannot find symbol public Cocos2dxGLSurfaceView onCreateView() { ^ symbol: class Cocos2dxGLSurfaceView location: class AppActivity C:\Axmol_Root\tests\lua-tests\proj.android\app\src\org\axmol\lua_tests\AppActivity.java:57: error: cannot find symbol Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this); ^ symbol: class Cocos2dxGLSurfaceView location: class AppActivity C:\Axmol_Root\tests\lua-tests\proj.android\app\src\org\axmol\lua_tests\AppActivity.java:57: error: cannot find symbol Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this); ^ symbol: class Cocos2dxGLSurfaceView location: class AppActivity C:\Axmol_Root\tests\lua-tests\proj.android\app\src\org\axmol\sample\LuaJavaBridgeTest\LuaJavaBridgeTest.java:36: error: cannot find symbol Cocos2dxLuaJavaBridge.callLuaFunctionWithString(luaFunc, "success"); ^ symbol: variable Cocos2dxLuaJavaBridge location: class LuaJavaBridgeTest C:\Axmol_Root\tests\lua-tests\proj.android\app\src\org\axmol\sample\LuaJavaBridgeTest\LuaJavaBridgeTest.java:37: error: cannot find symbol Cocos2dxLuaJavaBridge.releaseLuaFunction(luaFunc); ^ symbol: variable Cocos2dxLuaJavaBridge location: class LuaJavaBridgeTest 5 errors 3 warnings

Task :libaxmol:mergeDebugShaders UP-TO-DATE Task :libaxmol:compileDebugShaders NO-SOURCE Task :libaxmol:generateDebugAssets UP-TO-DATE Task :libaxmol:packageDebugAssets UP-TO-DATE Task :LuaTests:mergeDebugShaders UP-TO-DATE Task :LuaTests:compileDebugShaders NO-SOURCE Task :LuaTests:generateDebugAssets UP-TO-DATE Task :LuaTests:mergeDebugAssets UP-TO-DATE Task :LuaTests:compressDebugAssets UP-TO-DATE Task :libaxmol:processDebugJavaRes NO-SOURCE Task :LuaTests:processDebugJavaRes NO-SOURCE Task :LuaTests:mergeDebugJavaResource UP-TO-DATE Task :LuaTests:checkDebugDuplicateClasses UP-TO-DATE Task :LuaTests:desugarDebugFileDependencies UP-TO-DATE Task :LuaTests:mergeExtDexDebug UP-TO-DATE Task :libaxmol:bundleLibRuntimeToDirDebug UP-TO-DATE Task :LuaTests:mergeDebugJniLibFolders UP-TO-DATE Task :LuaTests:mergeDebugNativeLibs UP-TO-DATE Task :LuaTests:mergeLibDexDebug UP-TO-DATE Task :LuaTests:stripDebugDebugSymbols UP-TO-DATE Task :LuaTests:validateSigningDebug UP-TO-DATE Task :LuaTests:writeDebugAppMetadata UP-TO-DATE Task :LuaTests:writeDebugSigningConfigVersions UP-TO-DATE

FAILURE: Build failed with an exception.

BUILD FAILED in 31s 51 actionable tasks: 5 executed, 46 up-to-date

rh101 commented 1 month ago

Check if this fix works:

Open up C:\Axmol_Root\tests\lua-tests\proj.android\app\src\org\axmol\sample\LuaJavaBridgeTest\LuaJavaBridgeTest.java, and change the following:

public static void callbackLua(final String tipInfo,final int luaFunc){
    Cocos2dxLuaJavaBridge.callLuaFunctionWithString(luaFunc, "success");
    Cocos2dxLuaJavaBridge.releaseLuaFunction(luaFunc);
}

to

public static void callbackLua(final String tipInfo,final int luaFunc){
    LuaBridge.callLuaFunctionWithString(luaFunc, "success");
    LuaBridge.releaseLuaFunction(luaFunc);
}

Also, please do not forget to add the code tags around code or logs that you past in your post, otherwise it's pretty tough to read. It's 3 backtick characters before and after the block.

kinjar1988 commented 1 month ago

No it's not work. Same error repeat again and again.

rh101 commented 1 month ago

No it's not work. Same error repeat again and again.

The change posted in my previous comment does actually work, but there is another change that is required as well (which I missed from your post):

Replace Cocos2dxGLSurfaceView with AxmolGLSurfaceView in lua-tests/proj.android/app/src/org/axmol/lua_tests/AppActivity.java, and it will successfully build.

kinjar1988 commented 4 weeks ago

Now another error generated on android studio. I have already installed vs 2022 with desktop workflow.

C/C++ Configuration Problem

lua-tests.LuaTests.main | debug | arm64-v8a Compiler exited with error code 1: C:\Users\Admin\AppData\Local\Android\Sdk\ndk\23.2.8568313\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe -xc++ --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DASTCENC_AVX=0 -DASTCENC_F16C=0 -DASTCENC_NEON=1 -DASTCENC_POPCNT=0 -DASTCENC_SSE=0 -DAX_ENABLE_3D=1 -DAX_ENABLE_3D_PHYSICS=1 -DAX_ENABLE_AUDIO=1 -DAX_ENABLE_CONSOLE=1 -DAX_ENABLE_MEDIA=1 -DAX_ENABLE_NAVMESH=1 -DAX_ENABLE_PHYSICS=1 -DAX_GLES_PROFILE=200 -DAX_USE_ALSOFT=1 -DCP_USE_CGTYPES=0 -DCP_USE_DOUBLES=0 -DGLAD_GLES2=1 -DGLAD_GLES2_USE_SYSTEM_EGL=1 -DNOUNCRYPT=1 -DOPENSSL_SUPPRESS_DEPRECATED=1 -DP2T_STATIC_EXPORTS -DPNG_ARM_NEON_OPT=2 -DUSE_FILE32API -DYASIO_SSL_BACKEND=1 -D_AX_DEBUG=1 -IC:/Axmol_Root -IC:/Axmol_Root/3rdparty -IC:/Axmol_Root/extensions/scripting -IC:/Axmol_Root/core -IC:/Axmol_Root/core/platform -IC:/Axmol_Root/3rdparty/robin-map/include -IC:/Axmol_Root/3rdparty/jni.hpp/include -IC:/Axmol_Root/3rdparty/freetype/include -IC:/Axmol_Root/3rdparty/openal -IC:/Axmol_Root/3rdparty/fmt/include -IC:/Axmol_Root/3rdparty/websocket-parser -IC:/Axmol_Root/3rdparty/png -IC:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/sources/android/cpufeatures -IC:/Axmol_Root/3rdparty/box2d/include -IC:/Axmol_Root/3rdparty/chipmunk/include -IC:/Axmol_Root/tests/lua-tests/proj.android/app/.cxx/Debug/1um2o591/arm64-v8a/engine/3rdparty/freetype/include -IC:/Axmol_Root/3rdparty/recast/.. -IC:/Axmol_Root/3rdparty/bullet/. -IC:/Axmol_Root/3rdparty/webp/src/webp -IC:/Axmol_Root/3rdparty/pugixml -IC:/Axmol_Root/3rdparty/xxhash/. -IC:/Axmol_Root/3rdparty/fastlz -IC:/Axmol_Root/3rdparty/clipper2/include -IC:/Axmol_Root/3rdparty/ConvertUTF/. -IC:/Axmol_Root/3rdparty/poly2tri/.. -IC:/Axmol_Root/3rdparty/astcenc/.. -IC:/Axmol_Root/3rdparty/openal/include -IC:/Axmol_Root/3rdparty/openal/include/AL -IC:/Axmol_Root/3rdparty/ogg/include -IC:/Axmol_Root/3rdparty/glad/include -IC:/Axmol_Root/3rdparty/unzip -IC:/Axmol_Root/3rdparty/llhttp/include -IC:/Axmol_Root/3rdparty/yasio -isystem C:/Axmol_Root/3rdparty/zlib/_x/include -isystem C:/Axmol_Root/3rdparty/jpeg-turbo/_x/include -isystem C:/Axmol_Root/3rdparty/openssl/_x/include -isystem C:/Axmol_Root/3rdparty/curl/_x/include -fno-char8_t -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -frtti -fexceptions -fsigned-char -fno-limit-debug-info -std=c++20 -fPIC -Winvalid-pch -Xclang -include-pch -Xclang C:/Axmol_Root/tests/lua-tests/proj.android/app/.cxx/Debug/1um2o591/arm64-v8a/engine/axmol/core/CMakeFiles/axmol.dir/cmake_pch.hxx.pch -Xclang -include -Xclang C:/Axmol_Root/tests/lua-tests/proj.android/app/.cxx/Debug/1um2o591/arm64-v8a/engine/axmol/core/CMakeFiles/axmol.dir/cmake_pch.hxx -fpch-preprocess -v -dD -E Android (8481493, based on r416183c2) clang version 12.0.9 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee) Target: aarch64-none-linux-android21 Thread model: posix InstalledDir: C:\Users\Admin\AppData\Local\Android\Sdk\ndk\23.2.8568313\toolchains\llvm\prebuilt\windows-x86_64\bin Found candidate GCC installation: C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android\4.9.x Selected GCC installation: C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x Candidate multilib: .;@m64 Selected multilib: .;@m64 (in-process) "C:\Users\Admin\AppData\Local\Android\Sdk\ndk\23.2.8568313\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" -cc1 -triple aarch64-none-linux-android21 -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name compiler-file5520567911683583192 -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=non-leaf -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu generic -target-feature +neon -target-abi aapcs -mllvm -aarch64-fix-cortex-a53-835769=1 -fallow-half-arguments-and-returns -fno-split-dwarf-inlining -debug-info-kind=standalone -dwarf-version=4 -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -resource-dir "C:\Users\Admin\AppData\Local\Android\Sdk\ndk\23.2.8568313\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\12.0.9" -isystem C:/Axmol_Root/3rdparty/zlib/_x/include -isystem C:/Axmol_Root/3rdparty/jpeg-turbo/_x/include -isystem C:/Axmol_Root/3rdparty/openssl/_x/include -isystem C:/Axmol_Root/3rdparty/curl/_x/include -D ASTCENC_AVX=0 -D ASTCENC_F16C=0 -D ASTCENC_NEON=1 -D ASTCENC_POPCNT=0 -D ASTCENC_SSE=0 -D AX_ENABLE_3D=1 -D AX_ENABLE_3D_PHYSICS=1 -D AX_ENABLE_AUDIO=1 -D AX_ENABLE_CONSOLE=1 -D AX_ENABLE_MEDIA=1 -D AX_ENABLE_NAVMESH=1 -D AX_ENABLE_PHYSICS=1 -D AX_GLES_PROFILE=200 -D AX_USE_ALSOFT=1 -D CP_USE_CGTYPES=0 -D CP_USE_DOUBLES=0 -D GLAD_GLES2=1 -D GLAD_GLES2_USE_SYSTEM_EGL=1 -D NOUNCRYPT=1 -D OPENSSL_SUPPRESS_DEPRECATED=1 -D P2T_STATIC_EXPORTS -D PNG_ARM_NEON_OPT=2 -D USE_FILE32API -D YASIO_SSL_BACKEND=1 -D _AX_DEBUG=1 -I C:/Axmol_Root -I C:/Axmol_Root/3rdparty -I C:/Axmol_Root/extensions/scripting -I C:/Axmol_Root/core -I C:/Axmol_Root/core/platform -I C:/Axmol_Root/3rdparty/robin-map/include -I C:/Axmol_Root/3rdparty/jni.hpp/include -I C:/Axmol_Root/3rdparty/freetype/include -I C:/Axmol_Root/3rdparty/openal -I C:/Axmol_Root/3rdparty/fmt/include -I C:/Axmol_Root/3rdparty/websocket-parser -I C:/Axmol_Root/3rdparty/png -I C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/sources/android/cpufeatures -I C:/Axmol_Root/3rdparty/box2d/include -I C:/Axmol_Root/3rdparty/chipmunk/include -I C:/Axmol_Root/tests/lua-tests/proj.android/app/.cxx/Debug/1um2o591/arm64-v8a/engine/3rdparty/freetype/include -I C:/Axmol_Root/3rdparty/recast/.. -I C:/Axmol_Root/3rdparty/bullet/. -I C:/Axmol_Root/3rdparty/webp/src/webp -I C:/Axmol_Root/3rdparty/pugixml -I C:/Axmol_Root/3rdparty/xxhash/. -I C:/Axmol_Root/3rdparty/fastlz -I C:/Axmol_Root/3rdparty/clipper2/include -I C:/Axmol_Root/3rdparty/ConvertUTF/. -I C:/Axmol_Root/3rdparty/poly2tri/.. -I C:/Axmol_Root/3rdparty/astcenc/.. -I C:/Axmol_Root/3rdparty/openal/include -I C:/Axmol_Root/3rdparty/openal/include/AL -I C:/Axmol_Root/3rdparty/ogg/include -I C:/Axmol_Root/3rdparty/glad/include -I C:/Axmol_Root/3rdparty/unzip -I C:/Axmol_Root/3rdparty/llhttp/include -I C:/Axmol_Root/3rdparty/yasio -D ANDROID -D _FORTIFY_SOURCE=2 -D ___CIDR_DEFINITIONS_END -isysroot C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/sysroot -internal-isystem C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1 -internal-isystem C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/local/include -internal-isystem "C:\Users\Admin\AppData\Local\Android\Sdk\ndk\23.2.8568313\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\12.0.9\include" -internal-externc-isystem C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/aarch64-linux-android -internal-externc-isystem C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/sysroot/include -internal-externc-isystem C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include -Wformat -Winvalid-pch -std=c++20 -fdeprecated-macro -fdebug-compilation-dir "C:\Axmol_Root\tests\lua-tests\proj.android\app\.cxx\Debug\1um2o591\arm64-v8a" -ferror-limit 19 -stack-protector 2 -fno-char8_t -fgnuc-version=4.2.1 -fno-implicit-modules -fcxx-exceptions -fexceptions -dD -include-pch C:/Axmol_Root/tests/lua-tests/proj.android/app/.cxx/Debug/1um2o591/arm64-v8a/engine/axmol/core/CMakeFiles/axmol.dir/cmake_pch.hxx.pch -include C:/Axmol_Root/tests/lua-tests/proj.android/app/.cxx/Debug/1um2o591/arm64-v8a/engine/axmol/core/CMakeFiles/axmol.dir/cmake_pch.hxx -o - -x c++ "C:\Users\Admin\AppData\Local\Temp\compiler-file5520567911683583192" clang -cc1 version 12.0.9 based upon LLVM 12.0.9git default target x86_64-w64-windows-gnu error: unable to read PCH file C:/Axmol_Root/tests/lua-tests/proj.android/app/.cxx/Debug/1um2o591/arm64-v8a/engine/axmol/core/CMakeFiles/axmol.dir/cmake_pch.hxx.pch: 'No such file or directory' ignoring nonexistent directory "C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/sysroot/include" ignoring duplicate directory "C:/Axmol_Root/3rdparty" ignoring duplicate directory "C:/Axmol_Root/3rdparty" ignoring duplicate directory "C:/Axmol_Root/3rdparty" #include "..." search starts here: #include ...> search starts here: C:/Axmol_Root C:/Axmol_Root/3rdparty C:/Axmol_Root/extensions/scripting C:/Axmol_Root/core C:/Axmol_Root/core/platform C:/Axmol_Root/3rdparty/robin-map/include C:/Axmol_Root/3rdparty/jni.hpp/include C:/Axmol_Root/3rdparty/freetype/include C:/Axmol_Root/3rdparty/openal C:/Axmol_Root/3rdparty/fmt/include C:/Axmol_Root/3rdparty/websocket-parser C:/Axmol_Root/3rdparty/png C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/sources/android/cpufeatures C:/Axmol_Root/3rdparty/box2d/include C:/Axmol_Root/3rdparty/chipmunk/include C:/Axmol_Root/tests/lua-tests/proj.android/app/.cxx/Debug/1um2o591/arm64-v8a/engine/3rdparty/freetype/include C:/Axmol_Root/3rdparty/bullet/. C:/Axmol_Root/3rdparty/webp/src/webp C:/Axmol_Root/3rdparty/pugixml C:/Axmol_Root/3rdparty/xxhash/. C:/Axmol_Root/3rdparty/fastlz C:/Axmol_Root/3rdparty/clipper2/include C:/Axmol_Root/3rdparty/ConvertUTF/. C:/Axmol_Root/3rdparty/openal/include C:/Axmol_Root/3rdparty/openal/include/AL C:/Axmol_Root/3rdparty/ogg/include C:/Axmol_Root/3rdparty/glad/include C:/Axmol_Root/3rdparty/unzip C:/Axmol_Root/3rdparty/llhttp/include C:/Axmol_Root/3rdparty/yasio C:/Axmol_Root/3rdparty/zlib/_x/include C:/Axmol_Root/3rdparty/jpeg-turbo/_x/include C:/Axmol_Root/3rdparty/openssl/_x/include C:/Axmol_Root/3rdparty/curl/_x/include C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1 C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/local/include C:\Users\Admin\AppData\Local\Android\Sdk\ndk\23.2.8568313\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\12.0.9\include C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/aarch64-linux-android C:/Users/Admin/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include End of search list. 1 error generated.

kinjar1988 commented 4 weeks ago

another error after all your solution applied.

rh101 commented 4 weeks ago

Now another error generated on android studio. I have already installed vs 2022 with desktop workflow.

Android builds do not use VS2022.

Have you tried to build the project? The configuration error shouldn't affect the build.

Also, once again, please surround the blocks you paste with the code tags:

image

or this image

to format it for better readability

rh101 commented 4 weeks ago

I just built this successfully, and it ran on the device without issues. This is using the latest dev branch, but I had to change the AGP version to 8.5.0 in proj.android/build.gradle, since it was complaining about 8.6.0:

classpath 'com.android.tools.build:gradle:8.5.0'

Ignore the C/C++ configuration issue, and if you're getting problems after applying the fixes I mentioned above, or the ones in #2225, then make sure you clean and re-sync the build files, then attempt to rebuild and run on the device.