cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
8.81k stars 2.05k forks source link

[2.4.4] Cann't build apk cocos creator #14604

Open deploygo88 opened 1 year ago

deploygo88 commented 1 year ago

Cocos Creator version

2.4.4

System information

Windows 10 Pro

Issue description

Cocos creator: 2.4.4 NDK: 19.2.5345600 JDK: jdk-8u361 Python: 2.7.18

I cann't build apk even though i create example hello word project from cocos creator with 2.4.4, but when i build 2.2.2 it's success How can i build with 2.4.4? My project current using this version, thanks for reading

Relevant error log output

No response

Steps to reproduce

This is my detail error when i build with cocos creator 2.4.4 native.log

Minimal reproduction project

No response

minggo commented 1 year ago

@PatriceJiang please take a look.

PatriceJiang commented 1 year ago

To obtain detailed logs, you can cd to the root directory of the Android project and execute ./gradlew --debug assembleDebug. @deploygo88

deploygo88 commented 1 year ago

image image image image

I don't know if this is what you want or not. Here are the logs after I run the command ./gradlew --debug assembleDebug @PatriceJiang

PatriceJiang commented 1 year ago

Based on the log content, it seems the build was successful.

If there are still errors, you can try opening the project in Android Studio and attempt to compile it there.

It's difficult to make out the details from the screenshot provided.

deploygo88 commented 1 year ago

I still have errors when using this version, I wanted to know , which version of ndk version, Android Gradle plugin version and Gradle version that needs to be used. Thanks @PatriceJiang

PatriceJiang commented 1 year ago

Please refer to the documentation at https://docs.cocos.com/creator/2.4/manual/en/publish/setup-native-development.html#android-gradle-upgrade

deploygo88 commented 1 year ago

Yes,, I've read it before i built, but it not work (Windows 10 pro). When my friends test build with macOS. It built success. @PatriceJiang