Can't compile in android studio


#1

Hi, I am using android studio 3.0.1, cocos2d-x 3.16, ndk 16b. here is the error

In file included from /Users/sabarulla/cocos2d-xProject/Game3/cocos2d/cocos/./base/CCConsole.h:44:0,
from /Users/sabarulla/cocos2d-xProject/Game3/cocos2d/cocos/./base/CCConsole.cpp:25:
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/map: In instantiation of ‘union std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>’:
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2088:55: required by substitution of ‘template<class _Tp, class _Arg> typename std::__ndk1::__select_2nd<decltype ((declval<_Tp>)()=(declval<_Arg>)()), std::__ndk1::integral_constant<bool, true> >::type std::__ndk1::__is_assignable_test(int) [with _Tp = std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&; _Arg = std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&&]’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2097:64: required from ‘struct std::__ndk1::__is_assignable_imp<std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&, std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&&, false>’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2106:8: required from ‘struct std::__ndk1::is_assignable<std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&, std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&&>’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:3774:29: required from ‘struct std::__ndk1::is_nothrow_assignable<std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&, std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&&>’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:3841:50: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2088:55: required by substitution of ‘template<class _Tp, class _Arg> typename std::__ndk1::__select_2nd<decltype ((declval<_Tp>)()=(declval<_Arg>)()), std::__ndk1::integral_constant<bool, true> >::type std::__ndk1::__is_assignable_test(int) [with _Tp = cocos2d::Console::Command&; _Arg = cocos2d::Console::Command&&]’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2097:64: required from ‘struct std::__ndk1::__is_assignable_imp<cocos2d::Console::Command&, cocos2d::Console::Command&&, false>’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2106:8: required from ‘struct std::__ndk1::is_assignable<cocos2d::Console::Command&, cocos2d::Console::Command&&>’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2127:50: required from ‘struct std::__ndk1::is_move_assignablecocos2d::Console::Command
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/utility:506:63: required from ‘struct std::__ndk1::pair<const std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>’
/Users/sabarulla/cocos2d-xProject/Game3/cocos2d/cocos/./base/CCConsole.cpp:331:28: required from here
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/map:624:16: error: ‘std::__ndk1::__value_type<_Key, _Value>::__cc’ has incomplete type
value_type __cc;
^
In file included from /Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/__functional_base:19:0,
from /Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/thread:90,
from /Users/sabarulla/cocos2d-xProject/Game3/cocos2d/cocos/./base/CCConsole.h:42,
from /Users/sabarulla/cocos2d-xProject/Game3/cocos2d/cocos/./base/CCConsole.cpp:25:
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/utility:312:29: error: declaration of 'std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>::value_type {aka struct std::__ndk1::pair<const std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>}'
struct _LIBCPP_TEMPLATE_VIS pair
^
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/utility: In instantiation of ‘struct std::__ndk1::pair<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>’:
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/map:625:21: required from ‘union std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2088:55: required by substitution of ‘template<class _Tp, class _Arg> typename std::__ndk1::__select_2nd<decltype ((declval<_Tp>)()=(declval<_Arg>)()), std::__ndk1::integral_constant<bool, true> >::type std::__ndk1::__is_assignable_test(int) [with _Tp = std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compa[arerm<std::__ndk1::basic_string<chear, std:a:__nbi] Cdk1::char_traits, std::_pile+_ndk1::all+ aocator : >, cstd::__nocdk1::_os_val2due_tx_iype<std::__ndknt1::basic_sertring<chnaar, l_stastd:tic :__n<=dk1::c Char_CCtraitsonol, std::_le_ndk1:r.cpp:allocator<
char> >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&; _Arg = std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&&]’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2097:64: required from ‘struct std::__ndk1::__is_assignable_imp<std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&, std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&&, false>’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2106:8: required from ‘struct std::__ndk1::is_assignable<std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&, std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&&>’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:3774:29: required from ‘struct std::__ndk1::is_nothrow_assignable<std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&, std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command> > >&&>’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:3841:50: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2088:55: required by substitution of ‘template<class _Tp, class _Arg> typename std::__ndk1::__select_2nd<decltype ((declval<_Tp>)()=(declval<_Arg>)()), std::__ndk1::integral_constant<bool, true> >::type std::__ndk1::__is_assignable_test(int) [with _Tp = cocos2d::Console::Command&; _Arg = cocos2d::Console::Command&&]’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2097:64: required from ‘struct std::__ndk1::__is_assignable_imp<cocos2d::Console::Command&, cocos2d::Console::Command&&, false>’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2106:8: required from ‘struct std::__ndk1::is_assignable<cocos2d::Console::Command&, cocos2d::Console::Command&&>’
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/type_traits:2127:50: required from ‘struct std::__ndk1::is_move_assignablecocos2d::Console::Command
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/utility:506:63: required from ‘struct std::__ndk1::pair<const std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>’
/Users/sabarulla/cocos2d-xProject/Game3/cocos2d/cocos/./base/CCConsole.cpp:331:28: required from here
/Users/sabarulla/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/utility:506:63: error: incomplete type ‘std::__ndk1::is_move_assignablecocos2d::Console::Command’ used in nested name specifier
is_move_assignable<first_type>::value &&
^
[armeabi] Compile++ arm : cocos2dx_internal_static <= CCData.cpp
[armeabi] Compile++ arm : cocos2dx_internal_static <= CCDataVisitor.cpp
[armeabi] Compile++ arm : cocos2dx_internal_static <= CCDirector.cpp
[armeabi] Compile++ arm : cocos2dx_internal_static <= CCEvent.cpp
[armeabi] Compile++ arm : cocos2dx_internal_static <= CCEventAcceleration.cpp
make: *** [/Users/sabarulla/cocos2d-xProject/Game3/proj.android-studio/app/build/intermediates/ndkBuild/debug/obj/local/armeabi/objs-debug/cocos2dx_internal_static/base/CCConsole.o] Error 1
make: *** Waiting for unfinished jobs…

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 5m 6s

42 actionable tasks: 21 executed, 21 up-to-date


#2

Do you use cocos console or android studio to build?


#3

I used android studio to build


#4

Try “Make Project”.


#5

if I make project, it shows following error

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:Game3:externalNativeBuildDebug’.

Build command failed.
Error while executing process /Users/sabarulla/Library/Android/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/sabarulla/cocos2d-xProject/Game3/proj.android-studio/app/jni/Android.mk NDK_APPLICATION_MK=/Users/sabarulla/cocos2d-xProject/Game3/proj.android-studio/app/jni/Application.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDK_DEBUG=1 APP_PLATFORM=android-14 NDK_OUT=/Users/sabarulla/cocos2d-xProject/Game3/proj.android-studio/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/Users/sabarulla/cocos2d-xProject/Game3/proj.android-studio/app/build/intermediates/ndkBuild/debug/lib NDK_TOOLCHAIN_VERSION=4.9 APP_PLATFORM=android-10 NDK_MODULE_PATH=/Users/sabarulla/cocos2d-xProject/Game3/cocos2d:/Users/sabarulla/cocos2d-xProject/Game3/cocos2d/cocos:/Users/sabarulla/cocos2d-xProject/Game3/cocos2d/external -j4 NDK_DEBUG=1 /Users/sabarulla/cocos2d-xProject/Game3/proj.android-studio/app/build/intermediates/ndkBuild/debug/obj/local/armeabi/libMyGame.so}
Android NDK: android-10 is unsupported. Using minimum supported version android-14.


#6

What happens if you run cocos new ...? Can you compile that project?


#7

/Users/sabarulla/cocos2d-xProject/Game3/proj.android-studio/app/build delete everything in this folder and try make project again.


#8

ok I will check


#9

after make project it show same error in ndk file

error: ‘std::__ndk1::__value_type<_Key, _Value>::__cc’ has incomplete type
value_type __cc;

error: declaration of 'std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>::value_type {aka struct std::__ndk1::pair<const std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, cocos2d::Console::Command>}'
struct _LIBCPP_TEMPLATE_VIS pair

error: incomplete type ‘std::__ndk1::is_move_assignablecocos2d::Console::Command’ used in nested name specifier
is_move_assignable<first_type>::value &&