yglukhov / nimx

GUI library
MIT License
1.09k stars 75 forks source link

Android Debug Build Deprecated Gradle & Older SDK #430

Open bitnom opened 4 years ago

bitnom commented 4 years ago

After realizing in https://github.com/yglukhov/nimx/issues/429 that I needed to create debug builds, I issued nake -d:debug droid. It got to BUILD SUCCESSFUL in 5s and hanged the terminal until I ctrl+ced nake. In the build output was:

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/user/Code/nim/android-ndk1/build/android/com.mycompany.NimxApp/src/main/java/org/libsdl/app/SDL.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

I then installed the APK in Anbox and was presented with:

Blocked by Play Protect

"This app was built for an older version of Android and doesn't include the latest privacy protections."

Is it possible to specify a different SDK version?

Tormund commented 4 years ago

check your AndroidManifest.xml for versions <uses-sdk android:targetSdkVersion="19" android:minSdkVersion="18"/>