Android studio is not working correctly and sent picture of problem please check and provide a feasible solution.
Go to your build.gradle(app) file and look for minSdkVersion. Change its value from 22 to 18. This happened because your phone has API 19 and minSdk of your app is 22.
Related
I had two API version(21,27) in my SDK platform and my Virtual Device was also targeting API 21.
The problem was MediaPlayer in my MainActivity was not working. I checked volume , it was obviously turned on but could here no sound.
So i thought the higher API version(In my case, API 27) might be causing the problem so i uninstalled it. and now every singe code has turned into red-which means error occured)as u can see.
enter image description here
would you give insight of what is the cause and how to fix it?
Thanks you so much in advance.
Latest android studio version should use latest build tools and better to target with current popular version just like:
your project build.gradle should set like that:
compileSdkVersion 26
buildToolsVersion "27.0.3"
defaultConfig {
minSdkVersion 21
targetSdkVersion 27
set your min support sdk if the app support from SDK 21 to 27.
Should install back the latest sdk 27
download every api version and try
start with api 27 and keep coming down but you don't have to delete the sdk version
You just need to click the "Sync Project with gradle file", available in AndroidStudio
This will also download necessary SDK version in case missing.
I uploaded an Android app in Play store and It was published. Now I'm unable to download.
It displays "Your device isn't compatible with this version"...
My compileSdkVersion 26
BuildToolsVerdion 26.0.2
minSdkVersion 19
targetSdkVersion 23
Is this issue happens due to version 26 or something else?
Thanks
I was using uses-feature in Manifest file for Camera2 with required=true.
This made all devices unsupported.
Now that I changed to required=false and everything is fine as expected.
The most common reason for receiving the above error message while trying to download applications from the Google Play Store is that your current Android device may be running on an older version of Android.
Update your firmware accordingly, the possible reason could be the compatibility issue.
Your app must be developed using APIs which are now not compatible with current version of your firmware. If it is updated to latest, try using it on other device.
If you are using <supports-screens> tag in manifest, remove that tag, this helped me.
Finally solved.
go to your build.gradle(app) and comment buildToolsVersion. my compilesdkversion and targetsdk are 31. (though 32 is also available but no stable yet). publish your app. you're done.
I want to keep the min Sdk Version 14 and the target Sdk Version 19 and the compiled Sdk Version 23. Is it is technically OK or not?
if it is OK then will my App run properly on all Android devices?
Yes, it is technically OK, & if you are not using any dangerous permission then it will work on all android devices above API 14. If you are using any permission related task, then you will have to check the permission every time before using, otherwise your app might crash over some devices.
Read for more details:
https://developer.android.com/guide/topics/manifest/uses-sdk-element.html
https://medium.com/google-developers/picking-your-compilesdkversion-minsdkversion-targetsdkversion-a098a0341ebd
It's technically OK. Have a look at these very well described answers in other posts:
https://stackoverflow.com/a/27629181/4315095; https://stackoverflow.com/a/26694276/4315095
I'm developing android app and our boss want to upgrade the app to work on Android 6.0. So i upgrade the Build SDK target to SDK 6.0 and then I changed my android:targetSdkVersion to 23 in Manifest file. And then the app appear only white screen and nothing happened. Why is that happening? If I re-change android:targetSdkVersion to 22 then it's working. But permission request need for Android OS 6 huh? That's why i need to change android:targetSdkVersion to 23. Please guide me. As for addition, I've to develop that app with Eclipse. The boss don't want to use Android Studio. Please guide me with Eclipse solving. Thanks you very much.
Even if use target SDK below 23 it works on 6.0.in android only if you use min SDK 19 and if you run on device below API level 19 it won't but always higher versions support lower API levels through my knowledge, and be sure with your question.
I installed android studio & I checked SDK manager that only API level 25 & 24 is installed. I want to install other API levels like API 23 for Marshmallow & API 22 for Lollipop.
But before installing there are package details option. When i checked it there was many option.
So I want to know which options shall I choose (or necessary) to install certain API. I want to create app for mobile device only>SDK Manager Image for API 23
As the image shows API level 23 which I want to install. So please tell me which option shall I choose? Because their are many options new which are neither available for API level 24 nor for API 25.
The only thing I know that Android TV & Android wear should not be checked. what about the other options please help me.Thanks in advance
I think what you meed is Android SDK Platform 23, maybe you can have a try.
All you need to do is change your targetSdkVersion to 23 in app/build.gradle and Android Studio will ask you to sync and download needed tools.