Fixed Android building setup.

This commit is contained in:
genxium 2023-01-26 00:08:46 +08:00
parent 60bb74169e
commit 2028f8277d
5 changed files with 19 additions and 11 deletions

View File

@ -122,6 +122,9 @@ shell> /path/to/CocosCreator.exe --path ./frontend --build "platform=win32;debug
CocosCreator doesn't have perfect file cache management during native project building, use "Developer Tools > Reload" to reset the IDE status upon mysterious errors. CocosCreator doesn't have perfect file cache management during native project building, use "Developer Tools > Reload" to reset the IDE status upon mysterious errors.
![ccc_reload](./charts/NativeBuildReload.png) ![ccc_reload](./charts/NativeBuildReload.png)
Another issue is with the package name, see the screenshot below, kindly note that after successfully building with a blank package name, you can then re-fill the desired package name and build again!
![ccc_package_name](./charts/PackageNameIssueInCcc.png)
### 2.5 Checking UDP port binding result ### 2.5 Checking UDP port binding result
__*nix__ __*nix__
``` ```

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

View File

@ -1,8 +0,0 @@
{
"engine_version": "2.2.1",
"has_native": true,
"project_type": "js",
"projectName": "DelayNoMore",
"packageName": "org.genxium.delaynomore"
}

View File

@ -50,6 +50,18 @@
"frameworks/runtime-src/proj.android-studio/app/build.gradle", "frameworks/runtime-src/proj.android-studio/app/build.gradle",
"frameworks/runtime-src/proj.android-studio/app/AndroidManifest.xml" "frameworks/runtime-src/proj.android-studio/app/AndroidManifest.xml"
] ]
},
"project_replace_mac_bundleid": {
"src_bundle_id": "org.genxium.delaynomore",
"files": [
"frameworks/runtime-src/proj.ios_mac/mac/Info.plist"
]
},
"project_replace_ios_bundleid": {
"src_bundle_id": "org.genxium.delaynomore",
"files": [
"frameworks/runtime-src/proj.ios_mac/ios/Info.plist"
]
} }
} }
} }

View File

@ -17,7 +17,8 @@
}, },
"encryptJs": false, "encryptJs": false,
"excludeScenes": [ "excludeScenes": [
"8491a86c-bec9-4813-968a-128ca01639e0" "2ff474d9-0c9e-4fe3-87ec-fbff7cae85b4",
"92160186-3e0d-4e0a-ae20-97286170ba58"
], ],
"fb-instant-games": {}, "fb-instant-games": {},
"includeSDKBox": false, "includeSDKBox": false,
@ -37,7 +38,7 @@
"REMOTE_SERVER_ROOT": "", "REMOTE_SERVER_ROOT": "",
"orientation": "portrait" "orientation": "portrait"
}, },
"startScene": "2ff474d9-0c9e-4fe3-87ec-fbff7cae85b4", "startScene": "8491a86c-bec9-4813-968a-128ca01639e0",
"title": "DelayNoMore", "title": "DelayNoMore",
"webOrientation": "landscape", "webOrientation": "landscape",
"wechatgame": { "wechatgame": {
@ -57,5 +58,5 @@
"packageName": "org.genxium.delaynomore" "packageName": "org.genxium.delaynomore"
}, },
"win32": {}, "win32": {},
"includeAnySDK": false "includeAnySDK": null
} }