godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.79k stars 20.91k forks source link

Build failing on Export Android - Godot 4.1.1 #81668

Open Ming21 opened 1 year ago

Ming21 commented 1 year ago

Godot version

4.1.1

System information

Windows 10 - Godot 4.1

Issue description

Look de Build test - not found method "FullScreenGodotApp" and among others \GodotApp.java:33: error: package org.godotengine.godot does not exist import org.godotengine.godot.FullScreenGodotApp; ^ C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:41: error: cannot find symbol public class GodotApp extends FullScreenGodotApp {

Look the verbose build:

Microsoft Windows [versão 10.0.22621.2283] (c) Microsoft Corporation. Todos os direitos reservados.

C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build>./gradlew build '.' não é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes.

C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build>.\gradlew build

Task :processDebugMainManifest C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\debug\AndroidManifest.xml:13:5-132 Warning: uses-feature#android.hardware.vulkan.level was tagged at AndroidManifest.xml:13 to replace another declaration but no other declaration present C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\debug\AndroidManifest.xml:14:5-140 Warning: uses-feature#android.hardware.vulkan.version was tagged at AndroidManifest.xml:14 to replace another declaration but no other declaration present

Task :compileDevJavaWithJavac FAILED C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:33: error: package org.godotengine.godot does not exist import org.godotengine.godot.FullScreenGodotApp; ^ C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:41: error: cannot find symbol public class GodotApp extends FullScreenGodotApp { ^ symbol: class FullScreenGodotApp C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:42: error: method does not override or implement a method from a supertype @Override ^ C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:44: error: cannot find symbol setTheme(R.style.GodotAppMainTheme); ^ symbol: method setTheme(int) location: class GodotApp C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:45: error: cannot find symbol super.onCreate(savedInstanceState); ^ symbol: variable super location: class GodotApp 5 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 2s 36 actionable tasks: 5 executed, 31 up-to-date

Steps to reproduce

On Export Project for Android

Minimal reproduction project

Look de Build test - not found method "FullScreenGodotApp" and among others \GodotApp.java:33: error: package org.godotengine.godot does not exist import org.godotengine.godot.FullScreenGodotApp; ^ C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:41: error: cannot find symbol public class GodotApp extends FullScreenGodotApp {

Rindbee commented 1 year ago

It may be related to the JDK version, it requires downloading and using cmdline-tools;latest, the current JDK requirement to run the latest version of cmdline-tools is newer than JDK11 (although the documentation recommends JDK11).

I have both OpenJDK11 and OpenJDK17 installed. Following the steps in the documentation (https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_android.html), OpenJDK17 is required before running ./gradlew generateGodotTemplates. Then you need to switch to using OpenJDK11 to run ./gradlew generateGodotTemplates.

Maybe the documentation needs to indicate the specific cmdline-tools version, rather than the latest one. And the build script seems to be hardcoded to the latest version.

~$ /opt/android-sdk/cmdline-tools/latest/bin/sdkmanager --list
错误: 加载主类 com.android.sdklib.tool.sdkmanager.SdkManagerCli 时出现 LinkageError
    java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/sdkmanager/SdkManagerCli has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
Ming21 commented 1 year ago

Rindbee, I appreciate your help. But look, I’m using the updated Java in version 20 and analyze and tell me, I’ve tried some things and it seems that it doesn’t download some necessary packages to build the project.

Microsoft Windows [versão 10.0.22621.2283] (c) Microsoft Corporation. Todos os direitos reservados.

C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build>.\gradlew generateGodotTemplate

FAILURE: Build failed with an exception.

BUILD FAILED in 1s

C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build>.\gradlew build WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.2.1) was tested up to compileSdk = 32

This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=33 to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to use a newer Android Gradle Plugin that has been tested with compileSdk = 33

Task :compileDevJavaWithJavac FAILED C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:33: error: package org.godotengine.godot does not exist import org.godotengine.godot.FullScreenGodotApp; ^ C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:41: error: cannot find symbol public class GodotApp extends FullScreenGodotApp { ^ symbol: class FullScreenGodotApp C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:42: error: method does not override or implement a method from a supertype @Override ^ C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:44: error: cannot find symbol setTheme(R.style.GodotAppMainTheme); ^ symbol: method setTheme(int) location: class GodotApp C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:45: error: cannot find symbol super.onCreate(savedInstanceState); ^ symbol: variable super location: class GodotApp 5 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 1s 43 actionable tasks: 1 executed, 42 up-to-date

C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build>

I would greatly appreciate it if future versions could provide a much simpler method. My intention for using an engine is specifically to avoid the hassle of setting up and configuring environments

Ming21 commented 1 year ago

Microsoft Windows [versão 10.0.22621.2283] (c) Microsoft Corporation. Todos os direitos reservados.

C:\Users\celso\AppData\Local\Android\Sdk\cmdline-tools\latest\bin>sdkmanager --list [=======================================] 100% Computing updates... Installed packages: Path Version Description Location
build-tools;30.0.3 30.0.3 Android SDK Build-Tools 30.0.3 build-tools\30.0.3
build-tools;33.0.0 33.0.0 Android SDK Build-Tools 33 build-tools\33.0.0
build-tools;33.0.2 33.0.2 Android SDK Build-Tools 33.0.2 build-tools\33.0.2
build-tools;34.0.0 34.0.0 Android SDK Build-Tools 34 build-tools\34.0.0
cmake;3.22.1 3.22.1 CMake 3.22.1 cmake\3.22.1
cmdline-tools;latest 11.0 Android SDK Command-line Tools (latest) cmdline-tools\latest
emulator 32.1.14 Android Emulator emulator
ndk;25.2.9519653 25.2.9519653 NDK (Side by side) 25.2.9519653 ndk\25.2.9519653
patcher;v4 1 SDK Patch Applier v4 patcher\v4
platform-tools 34.0.4 Android SDK Platform-Tools platform-tools
platforms;android-31 1 Android SDK Platform 31 platforms\android-31
platforms;android-32 1 Android SDK Platform 32 platforms\android-32
platforms;android-33 3 Android SDK Platform 33 platforms\android-33
platforms;android-34 2 Android SDK Platform 34 platforms\android-34
sources;android-32 1 Sources for Android 32 sources\android-32
sources;android-33 1 Sources for Android 33 sources\android-33
sources;android-34 1 Sources for Android 34 sources\android-34

Available Packages: Path | Version | Description

------- | ------- | -------

add-ons;addon-google_apis-google-15 | 3 | Google APIs

add-ons;addon-google_apis-google-16 | 4 | Google APIs

add-ons;addon-google_apis-google-17 | 4 | Google APIs

add-ons;addon-google_apis-google-18 | 4 | Google APIs

add-ons;addon-google_apis-google-19 | 20 | Google APIs

add-ons;addon-google_apis-google-21 | 1 | Google APIs

add-ons;addon-google_apis-google-22 | 1 | Google APIs

add-ons;addon-google_apis-google-23 | 1 | Google APIs

add-ons;addon-google_apis-google-24 | 1 | Google APIs

build-tools;19.1.0 | 19.1.0 | Android SDK Build-Tools 19.1 build-tools;20.0.0 | 20.0.0 | Android SDK Build-Tools 20 build-tools;21.1.2 | 21.1.2 | Android SDK Build-Tools 21.1.2 build-tools;22.0.1 | 22.0.1 | Android SDK Build-Tools 22.0.1 build-tools;23.0.1 | 23.0.1 | Android SDK Build-Tools 23.0.1 build-tools;23.0.2 | 23.0.2 | Android SDK Build-Tools 23.0.2 build-tools;23.0.3 | 23.0.3 | Android SDK Build-Tools 23.0.3 build-tools;24.0.0 | 24.0.0 | Android SDK Build-Tools 24 build-tools;24.0.1 | 24.0.1 | Android SDK Build-Tools 24.0.1 build-tools;24.0.2 | 24.0.2 | Android SDK Build-Tools 24.0.2 build-tools;24.0.3 | 24.0.3 | Android SDK Build-Tools 24.0.3 build-tools;25.0.0 | 25.0.0 | Android SDK Build-Tools 25 build-tools;25.0.1 | 25.0.1 | Android SDK Build-Tools 25.0.1 build-tools;25.0.2 | 25.0.2 | Android SDK Build-Tools 25.0.2 build-tools;25.0.3 | 25.0.3 | Android SDK Build-Tools 25.0.3 build-tools;26.0.0 | 26.0.0 | Android SDK Build-Tools 26 build-tools;26.0.1 | 26.0.1 | Android SDK Build-Tools 26.0.1 build-tools;26.0.2 | 26.0.2 | Android SDK Build-Tools 26.0.2 build-tools;26.0.3 | 26.0.3 | Android SDK Build-Tools 26.0.3 build-tools;27.0.0 | 27.0.0 | Android SDK Build-Tools 27 build-tools;27.0.1 | 27.0.1 | Android SDK Build-Tools 27.0.1 build-tools;27.0.2 | 27.0.2 | Android SDK Build-Tools 27.0.2 build-tools;27.0.3 | 27.0.3 | Android SDK Build-Tools 27.0.3 build-tools;28.0.0 | 28.0.0 | Android SDK Build-Tools 28 build-tools;28.0.1 | 28.0.1 | Android SDK Build-Tools 28.0.1 build-tools;28.0.2 | 28.0.2 | Android SDK Build-Tools 28.0.2 build-tools;28.0.3 | 28.0.3 | Android SDK Build-Tools 28.0.3 build-tools;29.0.0 | 29.0.0 | Android SDK Build-Tools 29 build-tools;29.0.1 | 29.0.1 | Android SDK Build-Tools 29.0.1 build-tools;29.0.2 | 29.0.2 | Android SDK Build-Tools 29.0.2 build-tools;29.0.3 | 29.0.3 | Android SDK Build-Tools 29.0.3 build-tools;30.0.0 | 30.0.0 | Android SDK Build-Tools 30 build-tools;30.0.1 | 30.0.1 | Android SDK Build-Tools 30.0.1 build-tools;30.0.2 | 30.0.2 | Android SDK Build-Tools 30.0.2 build-tools;30.0.3 | 30.0.3 | Android SDK Build-Tools 30.0.3 build-tools;31.0.0 | 31.0.0 | Android SDK Build-Tools 31 build-tools;32.0.0 | 32.0.0 | Android SDK Build-Tools 32 build-tools;32.1.0-rc1 | 32.1.0 rc1 | Android SDK Build-Tools 32.1-rc1 build-tools;33.0.0 | 33.0.0 | Android SDK Build-Tools 33 build-tools;33.0.1 | 33.0.1 | Android SDK Build-Tools 33.0.1 build-tools;33.0.2 | 33.0.2 | Android SDK Build-Tools 33.0.2 build-tools;34.0.0 | 34.0.0 | Android SDK Build-Tools 34 build-tools;34.0.0-rc1 | 34.0.0 rc1 | Android SDK Build-Tools 34-rc1 build-tools;34.0.0-rc2 | 34.0.0 rc2 | Android SDK Build-Tools 34-rc2 build-tools;34.0.0-rc3 | 34.0.0 rc3 | Android SDK Build-Tools 34-rc3 cmake;3.10.2.4988404 | 3.10.2 | CMake 3.10.2.4988404 cmake;3.18.1 | 3.18.1 | CMake 3.18.1 cmake;3.22.1 | 3.22.1 | CMake 3.22.1 cmake;3.6.4111459 | 3.6.4111459 | CMake 3.6.4111459 cmdline-tools;1.0 | 1.0 | Android SDK Command-line Tools cmdline-tools;10.0 | 10.0 | Android SDK Command-line Tools cmdline-tools;11.0 | 11.0 | Android SDK Command-line Tools cmdline-tools;2.1 | 2.1 | Android SDK Command-line Tools cmdline-tools;3.0 | 3.0 | Android SDK Command-line Tools cmdline-tools;4.0 | 4.0 | Android SDK Command-line Tools cmdline-tools;5.0 | 5.0 | Android SDK Command-line Tools cmdline-tools;6.0 | 6.0 | Android SDK Command-line Tools cmdline-tools;7.0 | 7.0 | Android SDK Command-line Tools cmdline-tools;8.0 | 8.0 | Android SDK Command-line Tools cmdline-tools;9.0 | 9.0 | Android SDK Command-line Tools cmdline-tools;latest | 11.0 | Android SDK Command-line Tools (latest) emulator | 32.1.15 | Android Emulator extras;android;m2repository | 47.0.0 | Android Support Repository extras;google;Android_Emulator_Hypervisor_Driver | 2.0.0 | Android Emulator hypervisor driver (installer) extras;google;auto | 2.0 | Android Auto Desktop Head Unit Emulator extras;google;google_play_services | 49 | Google Play services extras;google;instantapps | 1.9.0 | Google Play Instant Development SDK extras;google;m2repository | 58 | Google Repository extras;google;market_apk_expansion | 1 | Google Play APK Expansion library extras;google;market_licensing | 1 | Google Play Licensing Library extras;google;simulators | 1 | Android Auto API Simulators extras;google;usb_driver | 13 | Google USB Driver extras;google;webdriver | 2 | Google Web Driver extras;intel;Hardware_Accelerated_Execution_Manager | 7.6.5 | Intel x86 Emulator Accelerator (HAXM installer) - Deprecated extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0 | 1 | Solver for ConstraintLayout 1.0.0 extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha4 | 1 | com.android.support.constraint:constraint-layout-solver:1.0.0-alpha4 extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha8 | 1 | Solver for ConstraintLayout 1.0.0-alpha8 extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta1 | 1 | Solver for ConstraintLayout 1.0.0-beta1 extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta2 | 1 | Solver for ConstraintLayout 1.0.0-beta2 extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta3 | 1 | Solver for ConstraintLayout 1.0.0-beta3 extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta4 | 1 | Solver for ConstraintLayout 1.0.0-beta4 extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta5 | 1 | Solver for ConstraintLayout 1.0.0-beta5 extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.1 | 1 | Solver for ConstraintLayout 1.0.1 extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2 | 1 | Solver for ConstraintLayout 1.0.2 extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0 | 1 | ConstraintLayout for Android 1.0.0 extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-alpha4 | 1 | com.android.support.constraint:constraint-layout:1.0.0-alpha4 extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-alpha8 | 1 | ConstraintLayout for Android 1.0.0-alpha8 extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta1 | 1 | ConstraintLayout for Android 1.0.0-beta1 extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta2 | 1 | ConstraintLayout for Android 1.0.0-beta2 extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta3 | 1 | ConstraintLayout for Android 1.0.0-beta3 extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta4 | 1 | ConstraintLayout for Android 1.0.0-beta4 extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta5 | 1 | ConstraintLayout for Android 1.0.0-beta5 extras;m2repository;com;android;support;constraint;constraint-layout;1.0.1 | 1 | ConstraintLayout for Android 1.0.1 extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2 | 1 | ConstraintLayout for Android 1.0.2 ndk-bundle | 22.1.7171670 | NDK

ndk;16.1.4479499 | 16.1.4479499 | NDK (Side by side) 16.1.4479499 ndk;17.2.4988734 | 17.2.4988734 | NDK (Side by side) 17.2.4988734 ndk;18.1.5063045 | 18.1.5063045 | NDK (Side by side) 18.1.5063045 ndk;19.2.5345600 | 19.2.5345600 | NDK (Side by side) 19.2.5345600 ndk;20.0.5594570 | 20.0.5594570 | NDK (Side by side) 20.0.5594570 ndk;20.1.5948944 | 20.1.5948944 | NDK (Side by side) 20.1.5948944 ndk;21.0.6113669 | 21.0.6113669 | NDK (Side by side) 21.0.6113669 ndk;21.1.6352462 | 21.1.6352462 | NDK (Side by side) 21.1.6352462 ndk;21.2.6472646 | 21.2.6472646 | NDK (Side by side) 21.2.6472646 ndk;21.3.6528147 | 21.3.6528147 | NDK (Side by side) 21.3.6528147 ndk;21.4.7075529 | 21.4.7075529 | NDK (Side by side) 21.4.7075529 ndk;22.0.7026061 | 22.0.7026061 | NDK (Side by side) 22.0.7026061 ndk;22.1.7171670 | 22.1.7171670 | NDK (Side by side) 22.1.7171670 ndk;23.0.7599858 | 23.0.7599858 | NDK (Side by side) 23.0.7599858 ndk;23.1.7779620 | 23.1.7779620 | NDK (Side by side) 23.1.7779620 ndk;23.2.8568313 | 23.2.8568313 | NDK (Side by side) 23.2.8568313 ndk;24.0.8215888 | 24.0.8215888 | NDK (Side by side) 24.0.8215888 ndk;25.0.8775105 | 25.0.8775105 | NDK (Side by side) 25.0.8775105 ndk;25.1.8937393 | 25.1.8937393 | NDK (Side by side) 25.1.8937393 ndk;25.2.9519653 | 25.2.9519653 | NDK (Side by side) 25.2.9519653 patcher;v4 | 1 | SDK Patch Applier v4 platform-tools | 34.0.4 | Android SDK Platform-Tools platforms;android-10 | 2 | Android SDK Platform 10 platforms;android-11 | 2 | Android SDK Platform 11 platforms;android-12 | 3 | Android SDK Platform 12 platforms;android-13 | 1 | Android SDK Platform 13 platforms;android-14 | 4 | Android SDK Platform 14 platforms;android-15 | 5 | Android SDK Platform 15 platforms;android-16 | 5 | Android SDK Platform 16 platforms;android-17 | 3 | Android SDK Platform 17 platforms;android-18 | 3 | Android SDK Platform 18 platforms;android-19 | 4 | Android SDK Platform 19 platforms;android-20 | 2 | Android SDK Platform 20 platforms;android-21 | 2 | Android SDK Platform 21 platforms;android-22 | 2 | Android SDK Platform 22 platforms;android-23 | 3 | Android SDK Platform 23 platforms;android-24 | 2 | Android SDK Platform 24 platforms;android-25 | 3 | Android SDK Platform 25 platforms;android-26 | 2 | Android SDK Platform 26 platforms;android-27 | 3 | Android SDK Platform 27 platforms;android-28 | 6 | Android SDK Platform 28 platforms;android-29 | 5 | Android SDK Platform 29 platforms;android-30 | 3 | Android SDK Platform 30 platforms;android-31 | 1 | Android SDK Platform 31 platforms;android-32 | 1 | Android SDK Platform 32 platforms;android-33 | 3 | Android SDK Platform 33 platforms;android-33-ext4 | 1 | Android SDK Platform 33-ext4 platforms;android-33-ext5 | 1 | Android SDK Platform 33-ext5 platforms;android-34 | 2 | Android SDK Platform 34 platforms;android-7 | 3 | Android SDK Platform 7 platforms;android-8 | 3 | Android SDK Platform 8 platforms;android-9 | 2 | Android SDK Platform 9 platforms;android-TiramisuPrivacySandbox | 9 | Android SDK Platform TiramisuPrivacySandbox platforms;android-UpsideDownCakePrivacySandbox | 2 | Android SDK Platform UpsideDownCakePrivacySandbox skiaparser;1 | 6 | Layout Inspector image server for API 29-30 skiaparser;2 | 3 | Layout Inspector image server for API S skiaparser;3 | 3 | Layout Inspector image server for API 31-34 sources;android-15 | 2 | Sources for Android 15 sources;android-16 | 2 | Sources for Android 16 sources;android-17 | 1 | Sources for Android 17 sources;android-18 | 1 | Sources for Android 18 sources;android-19 | 2 | Sources for Android 19 sources;android-20 | 1 | Sources for Android 20 sources;android-21 | 1 | Sources for Android 21 sources;android-22 | 1 | Sources for Android 22 sources;android-23 | 1 | Sources for Android 23 sources;android-24 | 1 | Sources for Android 24 sources;android-25 | 1 | Sources for Android 25 sources;android-26 | 1 | Sources for Android 26 sources;android-27 | 1 | Sources for Android 27 sources;android-28 | 1 | Sources for Android 28 sources;android-29 | 1 | Sources for Android 29 sources;android-30 | 1 | Sources for Android 30 sources;android-31 | 1 | Sources for Android 31 sources;android-32 | 1 | Sources for Android 32 sources;android-33 | 1 | Sources for Android 33 sources;android-34 | 1 | Sources for Android 34 system-images;android-10;default;armeabi-v7a | 5 | ARM EABI v7a System Image system-images;android-10;default;x86 | 5 | Intel x86 Atom System Image system-images;android-10;google_apis;armeabi-v7a | 6 | Google APIs ARM EABI v7a System Image system-images;android-10;google_apis;x86 | 6 | Google APIs Intel x86 Atom System Image system-images;android-14;default;armeabi-v7a | 2 | ARM EABI v7a System Image system-images;android-15;default;armeabi-v7a | 5 | ARM EABI v7a System Image system-images;android-15;default;x86 | 7 | Intel x86 Atom System Image system-images;android-15;google_apis;armeabi-v7a | 6 | Google APIs ARM EABI v7a System Image system-images;android-15;google_apis;x86 | 7 | Google APIs Intel x86 Atom System Image system-images;android-16;default;armeabi-v7a | 6 | ARM EABI v7a System Image system-images;android-16;default;mips | 1 | MIPS System Image system-images;android-16;default;x86 | 7 | Intel x86 Atom System Image system-images;android-16;google_apis;armeabi-v7a | 6 | Google APIs ARM EABI v7a System Image system-images;android-16;google_apis;x86 | 7 | Google APIs Intel x86 Atom System Image system-images;android-17;default;armeabi-v7a | 6 | ARM EABI v7a System Image system-images;android-17;default;mips | 1 | MIPS System Image system-images;android-17;default;x86 | 7 | Intel x86 Atom System Image system-images;android-17;google_apis;armeabi-v7a | 6 | Google APIs ARM EABI v7a System Image system-images;android-17;google_apis;x86 | 7 | Google APIs Intel x86 Atom System Image system-images;android-18;default;armeabi-v7a | 5 | ARM EABI v7a System Image system-images;android-18;default;x86 | 4 | Intel x86 Atom System Image system-images;android-18;google_apis;armeabi-v7a | 6 | Google APIs ARM EABI v7a System Image system-images;android-18;google_apis;x86 | 6 | Google APIs Intel x86 Atom System Image system-images;android-19;default;armeabi-v7a | 5 | ARM EABI v7a System Image system-images;android-19;default;x86 | 6 | Intel x86 Atom System Image system-images;android-19;google_apis;armeabi-v7a | 40 | Google APIs ARM EABI v7a System Image system-images;android-19;google_apis;x86 | 40 | Google APIs Intel x86 Atom System Image system-images;android-21;android-tv;armeabi-v7a | 3 | Android TV ARM EABI v7a System Image system-images;android-21;android-tv;x86 | 3 | Android TV Intel x86 Atom System Image system-images;android-21;default;arm64-v8a | 4 | ARM 64 v8a System Image system-images;android-21;default;armeabi-v7a | 4 | ARM EABI v7a System Image system-images;android-21;default;x86 | 5 | Intel x86 Atom System Image system-images;android-21;default;x86_64 | 5 | Intel x86_64 Atom System Image system-images;android-21;google_apis;arm64-v8a | 32 | Google APIs ARM 64 v8a System Image system-images;android-21;google_apis;armeabi-v7a | 32 | Google APIs ARM EABI v7a System Image system-images;android-21;google_apis;x86 | 32 | Google APIs Intel x86 Atom System Image system-images;android-21;google_apis;x86_64 | 32 | Google APIs Intel x86_64 Atom System Image system-images;android-22;android-tv;x86 | 3 | Android TV Intel x86 Atom System Image system-images;android-22;default;arm64-v8a | 2 | ARM 64 v8a System Image system-images;android-22;default;armeabi-v7a | 2 | ARM EABI v7a System Image system-images;android-22;default;x86 | 6 | Intel x86 Atom System Image system-images;android-22;default;x86_64 | 6 | Intel x86_64 Atom System Image system-images;android-22;google_apis;arm64-v8a | 26 | Google APIs ARM 64 v8a System Image system-images;android-22;google_apis;armeabi-v7a | 26 | Google APIs ARM EABI v7a System Image system-images;android-22;google_apis;x86 | 26 | Google APIs Intel x86 Atom System Image system-images;android-22;google_apis;x86_64 | 26 | Google APIs Intel x86_64 Atom System Image system-images;android-23;android-tv;armeabi-v7a | 12 | Android TV ARM EABI v7a System Image system-images;android-23;android-tv;x86 | 21 | Android TV Intel x86 Atom System Image system-images;android-23;default;arm64-v8a | 7 | ARM 64 v8a System Image system-images;android-23;default;armeabi-v7a | 6 | ARM EABI v7a System Image system-images;android-23;default;x86 | 10 | Intel x86 Atom System Image system-images;android-23;default;x86_64 | 10 | Intel x86_64 Atom System Image system-images;android-23;google_apis;arm64-v8a | 33 | Google APIs ARM 64 v8a System Image system-images;android-23;google_apis;armeabi-v7a | 33 | Google APIs ARM EABI v7a System Image system-images;android-23;google_apis;x86 | 33 | Google APIs Intel x86 Atom System Image system-images;android-23;google_apis;x86_64 | 33 | Google APIs Intel x86_64 Atom System Image system-images;android-24;android-tv;x86 | 22 | Android TV Intel x86 Atom System Image system-images;android-24;default;arm64-v8a | 9 | ARM 64 v8a System Image system-images;android-24;default;armeabi-v7a | 7 | ARM EABI v7a System Image system-images;android-24;default;x86 | 8 | Intel x86 Atom System Image system-images;android-24;default;x86_64 | 8 | Intel x86_64 Atom System Image system-images;android-24;google_apis;arm64-v8a | 29 | Google APIs ARM 64 v8a System Image system-images;android-24;google_apis;x86 | 27 | Google APIs Intel x86 Atom System Image system-images;android-24;google_apis;x86_64 | 27 | Google APIs Intel x86_64 Atom System Image system-images;android-24;google_apis_playstore;x86 | 19 | Google Play Intel x86 Atom System Image system-images;android-25;android-tv;x86 | 16 | Android TV Intel x86 Atom System Image system-images;android-25;android-wear;armeabi-v7a | 3 | Android Wear ARM EABI v7a System Image system-images;android-25;android-wear;x86 | 3 | Android Wear Intel x86 Atom System Image system-images;android-25;default;arm64-v8a | 2 | ARM 64 v8a System Image system-images;android-25;default;x86 | 1 | Intel x86 Atom System Image system-images;android-25;default;x86_64 | 1 | Intel x86_64 Atom System Image system-images;android-25;google_apis;arm64-v8a | 20 | Google APIs ARM 64 v8a System Image system-images;android-25;google_apis;armeabi-v7a | 18 | Google APIs ARM EABI v7a System Image system-images;android-25;google_apis;x86 | 18 | Google APIs Intel x86 Atom System Image system-images;android-25;google_apis;x86_64 | 18 | Google APIs Intel x86_64 Atom System Image system-images;android-25;google_apis_playstore;x86 | 9 | Google Play Intel x86 Atom System Image system-images;android-26;android-tv;x86 | 14 | Android TV Intel x86 Atom System Image system-images;android-26;android-wear;x86 | 4 | Android Wear Intel x86 Atom System Image system-images;android-26;default;arm64-v8a | 2 | ARM 64 v8a System Image system-images;android-26;default;x86 | 1 | Intel x86 Atom System Image system-images;android-26;default;x86_64 | 1 | Intel x86_64 Atom System Image system-images;android-26;google_apis;arm64-v8a | 3 | Google APIs ARM 64 v8a System Image system-images;android-26;google_apis;x86 | 16 | Google APIs Intel x86 Atom System Image system-images;android-26;google_apis;x86_64 | 16 | Google APIs Intel x86_64 Atom System Image system-images;android-26;google_apis_playstore;x86 | 7 | Google Play Intel x86 Atom System Image system-images;android-27;android-tv;x86 | 9 | Android TV Intel x86 Atom System Image system-images;android-27;default;arm64-v8a | 2 | ARM 64 v8a System Image system-images;android-27;default;x86 | 1 | Intel x86 Atom System Image system-images;android-27;default;x86_64 | 1 | Intel x86_64 Atom System Image system-images;android-27;google_apis;arm64-v8a | 3 | Google APIs ARM 64 v8a System Image system-images;android-27;google_apis;x86 | 11 | Google APIs Intel x86 Atom System Image system-images;android-27;google_apis_playstore;x86 | 3 | Google Play Intel x86 Atom System Image system-images;android-28;android-tv;x86 | 10 | Android TV Intel x86 Atom System Image system-images;android-28;android-wear;x86 | 9 | Wear OS Intel x86 Atom System Image system-images;android-28;default;arm64-v8a | 2 | ARM 64 v8a System Image system-images;android-28;default;x86 | 4 | Intel x86 Atom System Image system-images;android-28;default;x86_64 | 4 | Intel x86_64 Atom System Image system-images;android-28;google_apis;arm64-v8a | 2 | Google APIs ARM 64 v8a System Image system-images;android-28;google_apis;x86 | 12 | Google APIs Intel x86 Atom System Image system-images;android-28;google_apis;x86_64 | 11 | Google APIs Intel x86_64 Atom System Image system-images;android-28;google_apis_playstore;arm64-v8a | 2 | Google ARM64-V8a Play ARM 64 v8a System Image system-images;android-28;google_apis_playstore;x86 | 9 | Google Play Intel x86 Atom System Image system-images;android-28;google_apis_playstore;x86_64 | 8 | Google Play Intel x86_64 Atom System Image system-images;android-29;android-tv;x86 | 3 | Android TV Intel x86 Atom System Image system-images;android-29;default;arm64-v8a | 8 | ARM 64 v8a System Image system-images;android-29;default;x86 | 8 | Intel x86 Atom System Image system-images;android-29;default;x86_64 | 8 | Intel x86_64 Atom System Image system-images;android-29;google_apis;arm64-v8a | 13 | Google APIs ARM 64 v8a System Image system-images;android-29;google_apis;x86 | 12 | Google APIs Intel x86 Atom System Image system-images;android-29;google_apis;x86_64 | 12 | Google APIs Intel x86_64 Atom System Image system-images;android-29;google_apis_playstore;x86 | 8 | Google Play Intel x86 Atom System Image system-images;android-29;google_apis_playstore;x86_64 | 8 | Google Play Intel x86_64 Atom System Image system-images;android-30;android-tv;x86 | 4 | Android TV Intel x86 Atom System Image system-images;android-30;android-wear;arm64-v8a | 11 | Wear OS 3 ARM 64 v8a System Image system-images;android-30;android-wear;x86 | 11 | Wear OS 3 Intel x86 Atom System Image system-images;android-30;aosp_atd;arm64-v8a | 1 | AOSP ATD ARM 64 v8a System Image system-images;android-30;aosp_atd;x86 | 1 | AOSP ATD Intel x86 Atom System Image system-images;android-30;aosp_atd;x86_64 | 2 | AOSP ATD Intel x86_64 Atom System Image system-images;android-30;default;arm64-v8a | 2 | ARM 64 v8a System Image system-images;android-30;default;x86_64 | 11 | Intel x86_64 Atom System Image system-images;android-30;google-tv;x86 | 4 | Google TV Intel x86 Atom System Image system-images;android-30;google_apis;arm64-v8a | 13 | Google APIs ARM 64 v8a System Image system-images;android-30;google_apis;x86 | 10 | Google APIs Intel x86 Atom System Image system-images;android-30;google_apis;x86_64 | 12 | Google APIs Intel x86_64 Atom System Image system-images;android-30;google_apis_playstore;x86 | 9 | Google Play Intel x86 Atom System Image system-images;android-30;google_apis_playstore;x86_64 | 10 | Google Play Intel x86_64 Atom System Image system-images;android-30;google_atd;arm64-v8a | 1 | Google APIs ATD ARM 64 v8a System Image system-images;android-30;google_atd;x86 | 1 | Google APIs ATD Intel x86 Atom System Image system-images;android-30;google_atd;x86_64 | 2 | Google APIs ATD Intel x86_64 Atom System Image system-images;android-31;android-tv;arm64-v8a | 4 | Android TV ARM 64 v8a System Image system-images;android-31;android-tv;x86 | 4 | Android TV Intel x86 Atom System Image system-images;android-31;default;arm64-v8a | 4 | ARM 64 v8a System Image system-images;android-31;default;x86_64 | 5 | Intel x86_64 Atom System Image system-images;android-31;google-tv;arm64-v8a | 4 | Google TV ARM 64 v8a System Image system-images;android-31;google-tv;x86 | 4 | Google TV Intel x86 Atom System Image system-images;android-31;google_apis;arm64-v8a | 11 | Google APIs ARM 64 v8a System Image system-images;android-31;google_apis;x86_64 | 14 | Google APIs Intel x86_64 Atom System Image system-images;android-31;google_apis_playstore;x86_64 | 9 | Google Play Intel x86_64 Atom System Image system-images;android-32;android-desktop;arm64-v8a | 5 | Desktop ARM 64 v8a System Image system-images;android-32;android-desktop;x86_64 | 5 | Desktop Intel x86_64 Atom System Image system-images;android-32;google_apis;arm64-v8a | 7 | Google APIs ARM 64 v8a System Image system-images;android-32;google_apis;x86_64 | 7 | Google APIs Intel x86_64 Atom System Image system-images;android-32;google_apis_playstore;x86_64 | 3 | Google Play Intel x86_64 Atom System Image system-images;android-33-ext4;google_apis_playstore;x86_64 | 1 | Google Play Intel x86_64 Atom System Image system-images;android-33-ext5;google_apis_playstore;x86_64 | 1 | Google Play Intel x86_64 Atom System Image system-images;android-33;android-tv;arm64-v8a | 5 | Android TV ARM 64 v8a System Image system-images;android-33;android-tv;x86 | 5 | Android TV Intel x86 Atom System Image system-images;android-33;google-tv;arm64-v8a | 5 | Google TV ARM 64 v8a System Image system-images;android-33;google-tv;x86 | 5 | Google TV Intel x86 Atom System Image system-images;android-33;google_apis;arm64-v8a | 13 | Google APIs ARM 64 v8a System Image system-images;android-33;google_apis;x86_64 | 13 | Google APIs Intel x86_64 Atom System Image system-images;android-33;google_apis_playstore;x86_64 | 7 | Google Play Intel x86_64 Atom System Image system-images;android-34;android-tv;arm64-v8a | 2 | Android TV ARM 64 v8a System Image system-images;android-34;android-tv;x86 | 2 | Android TV Intel x86 Atom System Image system-images;android-34;google-tv;arm64-v8a | 2 | Google TV ARM 64 v8a System Image system-images;android-34;google-tv;x86 | 2 | Google TV Intel x86 Atom System Image system-images;android-34;google_apis;arm64-v8a | 8 | Google APIs ARM 64 v8a System Image system-images;android-34;google_apis;x86_64 | 8 | Google APIs Intel x86_64 Atom System Image system-images;android-34;google_apis_playstore;x86_64 | 8 | Google Play Intel x86_64 Atom System Image system-images;android-TiramisuPrivacySandbox;google_apis_playstore;x86_64 | 9 | Google Play Intel x86_64 Atom System Image system-images;android-UpsideDownCakePrivacySandbox;google_apis_playstore;x86_64 | 2 | Google Play Intel x86_64 Atom System Image

Available Updates: ID Installed Available
emulator 32.1.14 32.1.15

C:\Users\celso\AppData\Local\Android\Sdk\cmdline-tools\latest\bin>

Ming21 commented 1 year ago

C:\Users\celso\AppData\Local\Android\Sdk\cmdline-tools\latest\bin>java --version java 20.0.2 2023-07-18 Java(TM) SE Runtime Environment (build 20.0.2+9-78) Java HotSpot(TM) 64-Bit Server VM (build 20.0.2+9-78, mixed mode, sharing)

C:\Users\celso\AppData\Local\Android\Sdk\cmdline-tools\latest\bin>

Rindbee commented 1 year ago

C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build>.\gradlew build

Well, this path seems to indicate that you did not download this repository to compile. Please see https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_android.html and https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_android.html#doc-exporting-for-android.

Ming21 commented 1 year ago

I’ve thoroughly checked all the documentation, but now I’ve hit a roadblock - it can’t find the SConstruct file. I’ve already run scons in the root directory where project.godot is located and inside the build directory. I haven’t been able to find any more information on how to resolve this issue.

Microsoft Windows [versão 10.0.22621.2283] (c) Microsoft Corporation. Todos os direitos reservados.

C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build>scons platform=android target=template_release arch=armv7

scons: *** No SConstruct file found. File "C:\Users\celso\AppData\Local\Programs\Python\Python311\Lib\site-packages\SCons\Script\Main.py", line 965, in _main

C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build>

Ming21 commented 1 year ago

I use the video method, plus use Gradle Build ON and Godot Google Play Billing ON as well https://www.youtube.com/watch?v=-qG4PVbVCgk

when exporting with these settings it does not mount the build. I've already tried running the build in cmd.exe and the log appears below

Microsoft Windows [versão 10.0.22621.2283] (c) Microsoft Corporation. Todos os direitos reservados.

C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build>.\gradlew build

Task :compileDevJavaWithJavac FAILED C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:33: error: package org.godotengine.godot does not exist import org.godotengine.godot.FullScreenGodotApp; ^ C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:41: error: cannot find symbol public class GodotApp extends FullScreenGodotApp { ^ symbol: class FullScreenGodotApp C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:42: error: method does not override or implement a method from a supertype @Override ^ C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:44: error: cannot find symbol setTheme(R.style.GodotAppMainTheme); ^ symbol: method setTheme(int) location: class GodotApp C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:45: error: cannot find symbol super.onCreate(savedInstanceState); ^ symbol: variable super location: class GodotApp 5 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 1s 43 actionable tasks: 1 executed, 42 up-to-date

C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build>

Ming21 commented 1 year ago

I'm sharing the minimum of the project. Note that it is not possible to generate a build and use Google Play Billing resources. I wish and thank you for your help on this path and I make the code fully available if you want to use it in an educational way for platform users. I haven't seen any really reliable and executable examples in various youtube videos. I am passionate about Godot and I hope that with this material the entire community grows and develops @Rindbee @ndarilek @dsrw @shlomif

https://drive.google.com/file/d/17WUhYhZ2HV9jyZjuczS23qdZW7alkffN/view?usp=drive_link

ndarilek commented 1 year ago

Blocked.

AThousandShips commented 1 year ago

@Ming21 do not randomly ping people like this, especially people completely unrelated to this issue post

This issue was opened just yesterday, no need to try to rush things along by pinging people to draw their attention, if people are in the threat they'll get notified, and they might not be in your timezone

Rindbee commented 1 year ago

I use the video method, plus use Gradle Build ON and Godot Google Play Billing ON as well https://www.youtube.com/watch?v=-qG4PVbVCgk

If your editor is not built from source code, but obtained from the official website, then you can directly obtain the export template, and then configure the environment for exporting to Android. This video explains this case.

If you need to compile the editor from source and export templates, please refer to compiling and export for complete information. Documents shared for each platform are placed on separate documentation pages, it may be necessary for you to read them as well.

If you want instant messaging feedback and better communication, check out https://godotengine.org/community/ and join some local user groups and communities .

Ming21 commented 1 year ago

I'm implementing GodotGooglePlayBilling in my project. However, when defining and configuring the Build and gradle ON and the Godot Google Billing Plugin ON. When I export, the build fails because it does not find java classes as specific above in other comments. see my interest and implement this feature in my game. I've read all the documentation and so far I haven't found a way to build it with all the libraries that Godot needs to build my apk with Google Play Billing resources. I have already exhausted everything that could test this functionality, but I have not been successful. That's why I'm asking for help from the community

Zireael07 commented 1 year ago

@Ming21 Please do not ping random people like that. AFAICT they're not even developers of Godot, just users, so they're unlikely to be able to help you - to add to what @AThousandShips said.

Ming21 commented 1 year ago

Can you give me a prediction for this correction, the integration with Google Play Billing?

AThousandShips commented 1 year ago

A prediction on the solution? You've been given several directions of where to turn for information, have these not provided any information? Have you asked in the community channels suggested above?

Ming21 commented 1 year ago

failure on godot 4.2.5

C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build>gradlew build WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.2.1) was tested up to compileSdk = 32

This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=33 to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to use a newer Android Gradle Plugin that has been tested with compileSdk = 33

Task :processDebugMainManifest C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\debug\AndroidManifest.xml:16:5-132 Warning: uses-feature#android.hardware.vulkan.level was tagged at AndroidManifest.xml:16 to replace another declaration but no other declaration present C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\debug\AndroidManifest.xml:17:5-140 Warning: uses-feature#android.hardware.vulkan.version was tagged at AndroidManifest.xml:17 to replace another declaration but no other declaration present

Task :stripDebugDebugSymbols Unable to strip the following libraries, packaging them as they are: libc++_shared.so, libgodot_android.so.

Task :compileDevJavaWithJavac FAILED C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:33: error: package org.godotengine.godot does not exist import org.godotengine.godot.GodotActivity; ^ C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:41: error: cannot find symbol public class GodotApp extends GodotActivity { ^ symbol: class GodotActivity C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:42: error: method does not override or implement a method from a supertype @Override ^ C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:44: error: cannot find symbol setTheme(R.style.GodotAppMainTheme); ^ symbol: method setTheme(int) location: class GodotApp C:\Users\celso\OneDrive\Documentos\Godot\Encaixes\android\build\src\com\godot\game\GodotApp.java:45: error: cannot find symbol super.onCreate(savedInstanceState); ^ symbol: variable super location: class GodotApp 5 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 18s 49 actionable tasks: 49 executed

kxn commented 11 months ago

You should NOT run gradlew build, this will build all configurations including dev, which is not included in distributed templates.

just run

gradlew builddebug or gradlew buildrelease

to build the version you need.

NIKHIL0VERMA commented 11 months ago

Hey OP, Did you happen to find any solution? I've been following this for months or so, I have the same issue, Tried with Godot 3.5 and some modifications recommended by Android Studio. Still have the same issue.

tobias666 commented 11 months ago

Hi Everyone, I have exact the same problem.

package org.godotengine.godot does not exist

I am not sure if it's a proper fix but I can run my app with gradle in my android phone. I went to "my proj"/android/build/lib". I copy the debug folder and rename it to dev. i changed the file name in the directory from debug to dev.

if there is a way to just build it with debug and release (without dev), it's great. I am talking about using "Remote Debug" button. I can run gradlew builddebug or buildrelease but takes a long time to deploy manually.

kxn commented 10 months ago

Hi Everyone, I have exact the same problem.

package org.godotengine.godot does not exist

I am not sure if it's a proper fix but I can run my app with gradle in my android phone. I went to "my proj"/android/build/lib". I copy the debug folder and rename it to dev. i changed the file name in the directory from debug to dev.

if there is a way to just build it with debug and release (without dev), it's great. I am talking about using "Remote Debug" button. I can run gradlew builddebug or buildrelease but takes a long time to deploy manually.

Unless there are errors when you use godot's own export function(or the remote debug button) , you should NOT run gradlew directly nor use Android studio