苹果系统已经包含完整的J2SE,其中就有JDK和JVM(苹果叫VM)。当然如果要升级JDK,那当然要自己下载安装了。
在MAC系统中,jdk的安装路径与windows不同,默认目录是:/System/Libray/Frameworks/JavaVM.Framwork/。
在这个目录下有个Versions目录,里面有不同版本的jdk。
二、android studio的编译命令
cocos compile -p android --android-studio
三、在cocos3.1.5中 android-studio中的build-cfg.json找不到了
gradle supports copy assets & compile scripts from engine 3.15
在android项目的app文件夹下面的build.gradle文件中配置 原来的build-cfg.json文件中的copy_resource,请看下面代码中的红色部分
android.applicationVariants.all { variant ->
// delete previous files first
delete "${buildDir}/intermediates/assets/${variant.dirName}"
variant.mergeAssets.doLast {
copy {
from "${buildDir}/../../../../../res"
into "${buildDir}/intermediates/assets/${variant.dirName}/res"
}
copy {
from "${buildDir}/../../../../../src"
into "${buildDir}/intermediates/assets/${variant.dirName}/src"
}
copy {
from "${buildDir}/../../../../../res"
into "${buildDir}/intermediates/assets/${variant.dirName}/restsss"
}
// copy {
// from "${buildDir}/../../../../cocos2d-x/cocos/scripting/lua-bindings/script"
// into "${buildDir}/intermediates/assets/${variant.dirName}/src/cocos"
// }
省略.....
}