My Cocos2D-x app is working only on android 22+ and crash in lower platforms throwing an exception java.lang.UnsatisfiedLinkError
App config:
Target SDK version 22 (Android Lollipop).
Min SDK is 14.
NDK r10c with eclipse.
Update:
Very useful answer https://stackoverflow.com/a/27093163/3547788
Old solution:
Possible fix by changing the ndkr10 to ndkr9 then the app will work for all android versions, For NDK10:
changing the target & min sdk at the manifest to 14
add APP_PLATFORM := android-14 to application.mk
clean and build.
Well you decide on the minimum version of Android to support and your game is then expected to run on all versions from that version to the latest version.
You cannot, for example, decide to support 2.3, 4.0.4 and 5.0.1, but not 4.4.2 and 5.0.
See <uses-sdk> reference.
Related
I'd like to upgrade the kotlin plugin bundled with Android Studio to a newer version (1.4.30), but not the latest version (1.4.31). The reason is that I think there's a bug with the latest one, but I would still like to use a version of the plugin that's relatively new instead of the one that comes bundled by default with the latest version of Android Studio (1.3.72 - almost a year old).
Is there a way to do this?
My project configuration
React-native version: 0.55.3
Android Gradle Version: 3.3
Android api level: 26
It will create 32 bit apk, now we need to create 64 bit apk file to upload on play store but in the studio, facing some issue like
Could not determine Java version "12.0.1"
so I've updated the Gradle file to 5.4.1, compileSdkVersion from 26 to 28 and all other react native library to latest updates But I got too many errors in the studio.
WARNING: The following project options are deprecated and have been
removed: android.useDeprecatedNdk NdkCompile is no longer supported
WARNING: Configuration 'provided' is obsolete and has been replaced
with 'compileOnly'. It will be removed at the end of 2018. For more
information see:
http://d.android.com/r/tools/update-dependency-configurations.html
after this error studio stuck and too many other libraries do not link with the android studio.
How to solve useDeprecatedNdk error and how to convert compileSdkVersion API level to 28 to run APK successfully.
Update gradle file:
App level build.gradlew
Root level build.gradle
gradle.properties
Old gradle version
App level build.gradle
root level build.gradle
graddle.wrapper.properties
react native package.json file
you can migrate your code with androidx and minimum apilevel 21
Google Play Changes in 2021:
All application that do not support a 64-bit version will not be available in the Google Play Market (including games written on the Unity engine)
read more
WHAT TO DO?
Thanks to ReactCommunity! As of March 12, 2019, ReactNative has a new version release 0.59.
Yes, they added hooks, but the important thing here is 64-bit support on Android.
So just upgrade your react native to the latest version and it will compile the App with 64 bit support!
How to Upgrade React Native??
Unfortunately I have updated my Android studio to 3.2.4 and since then, many issues occured.
I read from the 0.57 Changelog
Android tooling has been updated to match newer configuration
requirements (SDK 27, gradle 4.4, and support library 27); building
with Android plugin 3.2 doesn't work due to the gradle scripts, so
please stay on Android Studio 3.1 for now
Now I can neither downgrade nor download version 3.1.
Old versions are available in Android Studio download archives.
I have been having this error since for Android compilation .
My sdk url is oky, emulators are being detected but i cant generate any apk or run any android based app. Could
Your question is quite incomplete. Which LC version are you using, which Java JDK are you using, do you use Android Studio (just for the sdk) or do you have it installed via cdm? You need the Android sdk and Java Jdk.
Im using phonegap on nodejs, but when I use the command
phonegap local build android
It automatically ask me for "Android 4.2 SDK"
Please install Android target 17 (the Android 4.2 SDK). Make sure you
have the latest Android tools installed as well.
How can I choose a lower vesion (android 4.1) of the sdk using phonegap for nodejs?
Short answer: you don't have to!
I struggled with this until I installed v17 and completed my first build. It turns out that the generated Androidmanifest.xml has minSdkVersion=10, so the minimum version required for your application is 2.3.3, it just needs to compile against v17.