-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to compile project proj.android created by new cocos2d-x v 4.0 in new Android Studio 4.1.1? #20629
Comments
I'm having the same error as well. Guess I'll have to move to some other platform then. |
@Vasiliy229 downgrade your NDK to 21 or less. you may have to specify the exact directory inside local.properties |
i was able to build the project by upgrading the gradle version to the latest one: ! : in build.gradle: |
My friend.... you deserve an Oscar! |
H
Helped me, got it working with ^^abovse settings |
The cocos2d-x v4.0 installer generated a proj.android folder for me, apparently this is an Android studio project. I open it in Android Studio 4.1.1 - it says "ndk not found". I write the path to ndk:
"sdk.dir = C: \ Users \ user55 \ AppData \ Local \ Android \ Sdk
ndk.dir = C: \ Users \ user55 \ AppData \ Local \ Android \ Sdk \ ndk \ 22.0.7026061"
Next error:
"A problem occurred configuring project ':'. Java.lang.NullPointerException (no error message)"
To compile on the JDK command line in the jni folder, the files are not the same as in the cocos2d-x 4.0 compilation manual
Android Studio 4.1.1
How to build a new cocos2d-x project in apk.
It builds normally under Windows using cmake to create a project VS2019.
NDK installed via SDK manager in Android Studio.
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: