就是那个 右边一堆小怪往左边冲过来, 点击屏幕发子弹,小怪冲过左边就输了的那个小游戏
SDK版本如下
android-ndk-r5c
android-sdk_r11-windows (又下了个安卓2.2的SDK)
cocos2d-2.0-x-2.0.3
Cocos2dxSimpleGame (就是上面说的那个例程)
已装好CYGWIN(网络安装版的,好怪.老下一半停住要重新下)
一步步试下编译先
在WIN32下可以说完美运行了
但编译安卓版本时出错了.用create-android-project.bat 时提示如下:
是不是少了什么文件还是什么回事啊
Please enter your package path:com.testgame.test
Please enter your project name:testgame
“Now cocos2d-x suppurts Android 2.1-update1, 2.2, 2.3 & 3.0”
“Other versions have not tested.”
Available Android targets:
id: 1 or “android-8”
Name: Android 2.2
Type: Platform
API level: 8
Revision: 3
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854
ABIs : armeabi
id: 2 or “android-16”
Name: Android 4.1.2
Type: Platform
API level: 16
Revision: 3
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, W
XGA720, WXGA800, WXGA800-7in
ABIs : no ABIs.
Please input target id:1
Create android project
Error: Project folder ‘F:\cocos2d\Cocos2dxSimpleGame-0.9.1\Cocos2dxSimpleGame\te
stgame’ is not empty. Please consider using ‘android.bat update’ instead.
Created directory F:\cocos2d\Cocos2dxSimpleGame-0.9.1\Cocos2dxSimpleGame\testgam
e\src\com\testgame\test
Added file F:\cocos2d\Cocos2dxSimpleGame-0.9.1\Cocos2dxSimpleGame\testgame\src\c
om\testgame\test\testgame.java
Created directory F:\cocos2d\Cocos2dxSimpleGame-0.9.1\Cocos2dxSimpleGame\testgam
e\res
Created directory F:\cocos2d\Cocos2dxSimpleGame-0.9.1\Cocos2dxSimpleGame\testgam
e\bin
Created directory F:\cocos2d\Cocos2dxSimpleGame-0.9.1\Cocos2dxSimpleGame\testgam
e\libs
Created directory F:\cocos2d\Cocos2dxSimpleGame-0.9.1\Cocos2dxSimpleGame\testgam
e\res\values
Added file F:\cocos2d\Cocos2dxSimpleGame-0.9.1\Cocos2dxSimpleGame\testgame\res\v
alues\strings.xml
Created directory F:\cocos2d\Cocos2dxSimpleGame-0.9.1\Cocos2dxSimpleGame\testgam
e\res\layout
Added file F:\cocos2d\Cocos2dxSimpleGame-0.9.1\Cocos2dxSimpleGame\testgame\res\l
ayout\main.xml
Added file F:\cocos2d\Cocos2dxSimpleGame-0.9.1\Cocos2dxSimpleGame\testgame\Andro
idManifest.xml
Added file F:\cocos2d\Cocos2dxSimpleGame-0.9.1\Cocos2dxSimpleGame\testgame\build
.xml
Added file F:\cocos2d\Cocos2dxSimpleGame-0.9.1\Cocos2dxSimpleGame\testgame\progu
ard-project.txt
mkdir: 无法创建目录"/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleG
ame/testgame/android": File exists
mv: 无法将"/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/testg
ame/res" 移动至"/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/
testgame/android/res": Directory not empty
mv: 无法将"/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/testg
ame/src" 移动至"/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/
testgame/android/src": Directory not empty
ls: 无法访问/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/Hell
oWorld/: No such file or directory
cp: 无法获取"/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/Hel
loWorld/Resource/" 的文件状态(stat): No such file or directory
cp: 无法获取"/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/Hel
loWorld/android/jni" 的文件状态(stat): No such file or directory
cp: 无法获取"/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/Hel
loWorld/android/src" 的文件状态(stat): No such file or directory
/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/template/android
/copy_files.sh: line 60: /cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSi
mpleGame/testgame/android/jni/helloworld/Android.mk: No such file or directory
/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/template/android
/copy_files.sh: line 61: /cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSi
mpleGame/testgame/android/jni/Application.mk: No such file or directory
sed:无法读取 /cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/He
lloWorld/android/AndroidManifest.xml:No such file or directory
/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/template/android
/copy_files.sh: line 83: /cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSi
mpleGame/testgame/android/src/com/testgame/test/tempfile.java: No such file or d
irectory
mv: 无法获取"/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/tes
tgame/android/src/com/testgame/test/tempfile.java" 的文件状态(stat): No such fil
e or directory
cp: 无法获取"/cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/Hel
loWorld/android/res/layout/helloworld_demo.xml" 的文件状态(stat): No such file o
r directory
sed:无法读取 /cygdrive/f/cocos2d/Cocos2dxSimpleGame-0.9.1/Cocos2dxSimpleGame/te
stgame/android/res/layout/helloworld_demo.xml:No such file or directory
请按任意键继续. . .