Android platform not specified, searching a default one,;Can't find right android-platform for project
Cocos2d-x v3-
neonwarge04Likes 0Problem Description
I’ve been dealing with this for quite a while and could not figure out what might have causing this on both r9-r10 NDK versions. Any idea whats going on?
Here is what I get fromt he command line doing the build_native.py on the project root:Running command: compile
Building mode: debug
Android platform not specified, searching a default one...
Can't find right android-platform for project : "C:\SampleCosos2dProject\MySampleGame\proj.android". The android-platform should be equal/larger than 22
Traceback (most recent call last):
File "build_native.py", line 43, in <module>
build(opts.build_mode)
File "build_native.py", line 28, in build
raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!")
Exception: Build dynamic library for project [ C:\SampleCosos2dProject\MySampleGame\proj.android\../ ] fails!
Thanks for the help!
-
Sonar Systems adminLikes 0
Could you show us a screenshot of this problem please.
This reply has been verified.
-
neonwarge04Likes 0
Hey,
I can’t upload a screenshot in fact that’s the error. You don’t need screenshots, you will just see the same thing. Typing in the “python build_native.py” on the console give this error. I created a project and running that command gave me this.
Neon Warge@NEONWARGE-PC C:\SampleCosos2dProject\MySampleGame\proj.android
$ python build_native.py
Please use cocos console instead.Running command: compile
Building mode: debug
Android platform not specified, searching a default one...
Can't find right android-platform for project : "C:\SampleCosos2dProject\MySampleGame\proj.android". The android-platform should be equal/larger than 22
Traceback (most recent call last):
File "build_native.py", line 43, in <module>
build(opts.build_mode)
File "build_native.py", line 28, in build
raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!")
Exception: Build dynamic library for project [ C:\SampleCosos2dProject\MySampleGame\proj.android\../ ] fails!
-
Sonar Systems adminLikes 0
Use the cocos console as the newer versions of Cocos require it, we have a tutorial series on it
Login to reply