赞
踩
总共可分为三步
COCOS_ENGINE_PATH=E:/CocosDashboard_1.2.2/resources/.editors/Creator/3.6.1/resources/resources/3d/engine/native
即 复制路径
E:/CocosDashboard_1.2.2/resources/.editors/Creator/3.6.1/resources/resources/3d/engine/native 下的cocos文件夹到安卓项目根目录下
删除安卓项目app目录下的所有文件,从CocosCreator项目下拷贝app目录下的内容到安卓项目app目录下
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
# Android SDK version that will be used as the compile project
PROP_COMPILE_SDK_VERSION=32
# Android SDK version that will be used as the earliest version of android this application can run on
PROP_MIN_SDK_VERSION=21
# Android SDK version that will be used as the latest version of android this application has been tested on
PROP_TARGET_SDK_VERSION=32
# Android Build Tools version that will be used as the compile project
PROP_BUILD_TOOLS_VERSION=30.0.2
# Application ID
APPLICATION_ID=com.aduoliebaowjh.sqrkk
# List of CPU Archtexture to build that application with
# Available architextures (armeabi-v7a | arm64-v8a | x86 | x86_64)
# To build for multiple architexture, use the `:` between them
# Example - PROP_APP_ABI=arm64-v8a:armeabi-v7a
PROP_APP_ABI=arm64-v8a:armeabi-v7a
PROP_NDK_PATH=E:\\Sdk\\ndk\\25.0.8775105
# fill in sign information for release mode
RELEASE_STORE_FILE=E:/CocosDashboard_1.2.2/resources/.editors/Creator/3.3.2/resources/tools/keystore/debug.keystore
RELEASE_STORE_PASSWORD=123456
RELEASE_KEY_ALIAS=debug_keystore
RELEASE_KEY_PASSWORD=123456
有个别路径需自行匹配,对应的sdk工具版本可能也需要调整
然后就可以愉快的进行下一步打包运行了!!!
还有不了解的老铁,请点击链接获取demo
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。