Resources$NotFoundException: Resource ID #0x7f06005b on Android studio - android

I have a problem when i'm trying use the app on a tablet.
The error is:
The android version of the tablet is 5.0.2 API 21
and the grandle settings are:
compileSdkVersion 26,
minSdkVersion 19,
targetSdkVersion 26
If i run the app on my cellphone Android version is 7.0 API 24 has no problem.
The App start on tablet but when I try to get in to a specific activity the app crashes.
Please help and thank you.

Related

My Android Studio Project Is Not Compatible With android 9 & 10

I have an application that is in google play store and it uses targetSdkVersion 28 and compileSdkVersion 29 and also minSdkVersion 21 but when I go to my application page in playstore it says it isn't compatible with my Samsung A30 running android 10.
What is the problem??
I would appreciate if you can help me.
This is because you have set your targetSdkVersion to 28 (Android Pie) due to which you are not able to install it on your Samsung device with Android 10.
targetSdkVersion specifies the highest possible android API level that
the app will support.
You have just provided the support of Android 10 in compileSdkVersion and not for your targetSdkVersion.
Set it to:
targetSdkVersion 29
compileSdkVersion 29

Version integration in `Android`

I'm trying to execute my application in emulator having minSdkVersion 22, compileSdkVersion 25 and targetSdkVersion 25 but the emulator doesn't show my application. However, when I try to do the same with emulator having targetSdkVersion 24 my application executes successfully. I wanted to know why is this happening and how to solve this problem of version integration?
check this question:
What is the difference between compileSdkVersion and targetSdkVersion?
an example of this link says :
For example, setting this value to "11" or higher allows the system to apply a new default theme (Holo) to your app when running on Android 3.0 or higher...
target sdk version has different features for different versions

minSdk(API25) > deviceSdk(API24) error using Android Studio 2.2.3 and Windows 64 PRO with OnePlus3 phone

I'm just getting started with learning Android.
I installed Android Studio Version 2.2.3. and I'm trying to connect it with my OnePlus3 phone.
I get the following error when clicking on the green arrow:
Could anyone shed some light on this?
Go to app/build.gradle file and set minSdkVersion to your device max sdk version... that's all
The application you try to debug has minSdkVersion 25 and your phone SDK is 24,
I don't think that you need minSdkVersion 25 for your app
go to app/build.gradle file and minimize the min SDK or if it's important to let your app with this SDK use higher phone

Cannot change API Level on Android Studio

I'm very new to Android development and this is one of my first projects. I realized that my API Level is set to 20 when datepicker gave an "exception rasied during rendering" error.
I wanted to change the API level to 19 as the API 20 is set to wearable devices. I have installed the API 19 SDK but it doesnt appear for selection during development.
I have also tried to set -
minSdkVersion 10
targetSdkVersion 20
on build gradle but it doesn't work.
I cannot run the emulator as the API is set to 20 and it will display error on a watch :(
How do I set make the API 19 as one of the options during development as I already installed the SDK?
Set
compileSdkVersion 19
in your build.gradle.
minSdkVersion and targetSdkVersion control app installation and runtime backwards compatibility modes, not the SDK you build with.

Android Studio 0.8.2 error "Failure [INSTALL_FAILED_OLDER_SDK]" when trying to load app on phone [duplicate]

This question already has answers here:
Failure [INSTALL_FAILED_OLDER_SDK] Android Studio
(4 answers)
Closed 8 years ago.
I am in the process of building and debugging an app on my phone and I keep getting the error "Failure [INSTALL_FAILED_OLDER_SDK]" when I try to push a test build to my phone. It by default set the target SDK to L but I set the minimum SDK level to 9 to cover the most devices. The device I'm trying to load the app on is a Galaxy S3 running 4.4.4 (which I know is API 19).
Here is the defaultConfig from my build.gradle
defaultConfig {
applicationId "com.tg94.intcalc"
minSdkVersion 9
targetSdkVersion "L"
versionCode 1
versionName "1.0"
{
When I go and look at my AndroidManifest.xml though, this is what it shows
<uses-sdk
android:minSdkVersion="L"
android:targetSdkVersion="L" />
When I try to edit this (I tried editing in Visual Studio 2013, Notepad++ and just plan Windows Notepad), I noticed the android:minSdkVersion always changes back to L even though I changed it and saved it to API level 9. Is there any suggestions I should try to fix this?
EDIT: Just updated Android Studio to 0.8.2 but the problem still presists
Currently, applications that target the L developer preview cannot be installed on devices that do not have it -- the SDK forces minSdkVersion to L when targetSdkVersion is L. This is the associated issue in the AOSP tracker.
Although there are some hacks around this limitation, such as described here, they basically involve fooling the SDK into thinking L is not a developer preview.
If you're developing for L, then you should use an L device (or emulator) to test the app. Otherwise, use targetSdkVersion 19 instead.

Categories

Resources