cocos compile -p android 可以指定使用哪一个 android sdk 来编译应用么?
如 Android Studio 的 build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "23.0.0 rc2"
defaultConfig {
applicationId "com.example.jryin.fbtest"
minSdkVersion 9
targetSdkVersion 9
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar'])
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.facebook.android:facebook-android-sdk:4.5.0'
}
http://cocos2d-x.org/wiki/Cocos_compile
Android Options:
--ap ANDROID_PLATFORM
Specify the Android platform used for building Android
apk.
这是指定 target=android-x
--ndk-mode NDK_MODE Set the compiling mode of ndk-build, should be
debug|release|none, native code will not be compiled
when the value is none. Default is same value with
'-m'.
--app-abi APP_ABI Set the APP_ABI of ndk-build.Can be multi value
separated with ':'. Sample : --app-aib
armeabi:x86:mips. Default value is 'armeabi'.
--ndk-toolchain TOOLCHAIN
Specify the NDK_TOOLCHAIN of ndk-build.
--ndk-cppflags CPPFLAGS
Specify the APP_CPPFLAGS of ndk-build.
--android-studio Use the Android Studio project for Android platform.
谢谢。
