安卓编译之后再AS打开编译报错,使用的模板是link,default模板编译不通过(报这个错:arm-linux-androideabi-g++: error: F:tutorial-blackjack-masterbuildjsb-defaultframeworkscocos2d-xexternal/android/armeabi-v7a/libjs_static.a: No such file or directory)
AS上面的日志
D:\software\CocosCreator1.5\resources\cocos2d-x\cocos\platform\CCPlatformConfig.h
Error:(143, 6) error: #error “Cannot recognize the target platform; are you targeting an unsupported platform?”
F:\tutorial-blackjack-master\build\jsb-link\frameworks\runtime-src\Classes\AppDelegate.h
Error:(18, 30) error: ‘cocos2d’ has not been declared
Error:(18, 39) error: expected ‘{’ before ‘Application’
Error:(19, 1) error: invalid type in declaration before ‘{’ token
Error:(20, 1) error: expected primary-expression before ‘public’
Error:(20, 1) error: expected ‘}’ before ‘public’
Error:(20, 1) error: expected ‘,’ or ‘;’ before ‘public’
Error:(22, 26) error: declaration of ‘~AppDelegate’ as non-member
Error:(24, 31) error: virt-specifiers in ‘initGLContextAttrs’ not allowed outside a class definition
Error:(31, 48) error: ‘virtual’ outside class declaration
Error:(37, 48) error: ‘virtual’ outside class declaration
Error:(43, 49) error: ‘virtual’ outside class declaration
Error:(44, 1) error: expected declaration before ‘}’ token
Error:(18, 30) error: ‘cocos2d’ has not been declared
Error:(18, 39) error: expected ‘{’ before ‘Application’
Error:(19, 1) error: invalid type in declaration before ‘{’ token
Error:(20, 1) error: expected primary-expression before ‘public’
Error:(20, 1) error: expected ‘}’ before ‘public’
Error:(20, 1) error: expected ‘,’ or ‘;’ before ‘public’
Error:(22, 26) error: declaration of ‘~AppDelegate’ as non-member
Error:(24, 31) error: virt-specifiers in ‘initGLContextAttrs’ not allowed outside a class definition
Error:(31, 48) error: ‘virtual’ outside class declaration
Error:(37, 48) error: ‘virtual’ outside class declaration
Error:(43, 49) error: ‘virtual’ outside class declaration
Error:(44, 1) error: expected declaration before ‘}’ token
Error:(18, 30) error: ‘cocos2d’ has not been declared
Error:(18, 39) error: expected ‘{’ before ‘Application’
Error:(19, 1) error: invalid type in declaration before ‘{’ token
Error:(20, 1) error: expected primary-expression before ‘public’
Error:(20, 1) error: expected ‘}’ before ‘public’
Error:(20, 1) error: expected ‘,’ or ‘;’ before ‘public’
Error:(22, 26) error: declaration of ‘~AppDelegate’ as non-member
Error:(24, 31) error: virt-specifiers in ‘initGLContextAttrs’ not allowed outside a class definition
Error:(31, 48) error: ‘virtual’ outside class declaration
Error:(37, 48) error: ‘virtual’ outside class declaration
Error:(43, 49) error: ‘virtual’ outside class declaration
Error:(44, 1) error: expected declaration before ‘}’ token
Error:(18, 30) error: ‘cocos2d’ has not been declared
Error:(18, 39) error: expected ‘{’ before ‘Application’
Error:(19, 1) error: invalid type in declaration before ‘{’ token
Error:(20, 1) error: expected primary-expression before ‘public’
Error:(20, 1) error: expected ‘}’ before ‘public’
Error:(20, 1) error: expected ‘,’ or ‘;’ before ‘public’
Error:(22, 26) error: declaration of ‘~AppDelegate’ as non-member
Error:(24, 31) error: virt-specifiers in ‘initGLContextAttrs’ not allowed outside a class definition
Error:(31, 48) error: ‘virtual’ outside class declaration
Error:(37, 48) error: ‘virtual’ outside class declaration
Error:(43, 49) error: ‘virtual’ outside class declaration
Error:(44, 1) error: expected declaration before ‘}’ token
之前1.4版本是没问题的