-
-
Notifications
You must be signed in to change notification settings - Fork 242
Android template fails to build #2851
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
Conversation
AxmolActivity does not extend AppCompatActivity / missing appcompat dependency
|
A new project created from the template using Axmol v2.9.1 shows no errors when building with Android Studio 2025.2.1, so are you sure there isn't an issue specific to your dev environment? |
|
environment |
|
only axmol v3 depends on androidx.appcompat |
OK, I see now, but the statement "template does not build out of the box." is not quite correct. Generating a new project from the template, and building it, has no issues at all. You have modified |
|
My project won't build at all with Axmol 3. This build error is not related to min_sdk or the NDK version. I have already tested different version for both, and the issue still persists. When building the project, I get the following compilation errors: |
To clarify, which branch are you using, Also, which version of Android Studio are you using? |
|
Android Studio Otter | 2025.2.1 |
|
Using Android Studio 2025.2.1, and building a new project created from the branch I suggest you delete or rename or you current axmol folder, and re-clone the repo from Github, then switch to the |
|
@armanhossiny Is there any reason that this issue is still open? The Android build works without the changes in this PR, so this may indicate a problem in your development environment. @halx99 Is there any issue with the Android build? |
Description
A fresh Android build of the HelloCpp template fails to compile because
AppActivityuses methods that require
AppCompatActivity, butAxmolActivitydoes not extend it,and the template is missing the
androidx.appcompatdependency. So the Androidtemplate does not build out of the box.