@echo off
cd /d %~dp0
setlocal
set _CYGBIN=D:\cygwin\bin
set _ANDROIDTOOLS=D:\android\adt-bundle-windows-x86_64-20131030\sdk\tools
set _NDKROOT=D:\android\android-ndk-r9c
$ tree -L 2
.
├── Classes
│ ├── AppDelegate.cpp
│ ├── AppDelegate.h
│ ├── HelloWorldScene.cpp
│ └── HelloWorldScene.h
├── proj.android
│ ├── AndroidManifest.xml
│ ├── ant.properties
│ ├── assets
│ ├── bin
│ ├── build.xml
│ ├── build_native.sh
│ ├── gen
│ ├── jni
│ ├── libs
│ ├── local.properties
│ ├── ndkgdb.sh
│ ├── obj
│ ├── proguard-project.txt
│ ├── project.properties
│ ├── res
│ └── src
└── Resources
├── CloseNormal.png
├── CloseSelected.png
├── HelloWorld.png
└── Icon.png
11 directories, 16 files
jni/../../../cocos2dx/platform/android/CCCommon.cpp: \
In function 'void cocos2d::CCLog(char const*, ...)':
jni/../../../cocos2dx/platform/android/CCCommon.cpp:44:72: error: \
format not a string literal and no format arguments [-Werror=format-security]
APP_CPPFLAGS += -Wno-error=format-security
<application android:label="@string/app_name" android:icon="@drawable/icon">
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
$ /usr/bin/find . -name ic_launcher.png
./proj.android/res/drawable-hdpi/ic_launcher.png
./proj.android/res/drawable-ldpi/ic_launcher.png
./proj.android/res/drawable-mdpi/ic_launcher.png
./proj.android/res/drawable-xhdpi/ic_launcher.png
Cannot find module with tag 'CocosDenshion/android' in import path
$(call import-add-path, /cygdrive/f/cocos2d-x-2.1.4) \
$(call import-add-path, /cygdrive/f/cocos2d-x-2.1.4/cocos2dx/platform/third_party/android/prebuilt) \
# 这里两点注意,1. 反斜杠,2. cygwin路径
ERROR: packaging of 'F:\client\tsDemo\proj.android\bin\resources.ap_' failed
$ cd "F:\client\tsDemo\proj.android"
$ ls -la assets
$ chmod -R 755 assets #或者
$ find . | xargs -i chmod 777 {}
Get data from file(assets/*) failed