When I was creating a new project it showed this warning and I do not understand what is it for.
This is the image of the warning it is showing.image
I changed to 31 and here are some screenshots regarding the issue.
Try changing the compileSdk to 31 instead of 32 in your build.gradle.
change your compileSdkVersion and targetSdkVersion in build.gradel file
compileSdkVersion 31
targetSdkVersion 31
Related
I got the above error compileSdk() not found. While creating the app I have installed TargetSdk 31 and min SDK 19 But Apk does not install on Oreo Version so I have changed TargetSdk 31 to 31 and minSdk 19 to 16. I have uninstalled SDK 31 but it partially uninstalls. Please help me to solve this problem I am new to Android.
I have been strugling with this issue for hours until I looked at some older project. For some reason, newer versions of Android Studio mess up the directives from the Gradle file.
Just add "Version" after the name and it will work. So where you see "compileSdk" just rename it to "compileSdkVersion". You will probably also have to do that in "targetSdk" and so on.
in your <android_proj>/app/build.grandle instead of targetSdk 30 use:
android {
...
defaultConfig {
...
targetSdkVersion 30
}
}
I am trying to add React-Native-Admob 2.0.0-beta.5 into React-Native v0.55.4 for Android.
compileSdkVersion =26
buildToolsVersion ="27.0.3"
targetSdkVersion = 26
supportLibVersion = "26.1.0"
minSdkVersion = 18
And React-Native-Admob has
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
minSdkVersion 16
targetSdkVersion 22
}
And when i Compile the error Exception occur
The SDK Build Tools revision (23.0.1) is too low for project ':react-native-admob'. Minimum required is 25.0.0
I can't downgrade my project's SDK, other package uses that SDK.
You don't need to downgrade, you need to upgrade. Dependencies were probably added in the SDK that admob relies on. You can download the specified version packages for the SDK through Android studio and then set your SDK version in the file to the appropriate version necessary for admob.
Edit
I see that you are saying that admob is using version 23. You may need to submit an issue with them on GitHub for this.
you can change the buildToolVersion of the library you are using, just go to -> node_modules/{your-library}/android/build.gradle, change buildToolsVersion from 23.0.1 to 25.0.0.
if the studio asks for any updates regarding build, just update it, and it might work.
another solution:
although I haven't tried it, it has a lot of emoji love on GitHub,
https://github.com/oblador/react-native-keychain/issues/68#issuecomment-304836725
Goto
"node-module/react-native-admob/android/build.gradle" file, then change the compileSdkVersion and buildToolsVersion to following values
compileSdkVersion 27
buildToolsVersion "27.0.3"
I am not able to see the preview in the Android layout like the toolbar or the ActionBar. Below is the screenshot of the app:
Thanks.
Check if you are using SDK 28 as SDK 28 has a bug. Change
compileSdkVersion 28
targetSdkVersion 28
to
compileSdkVersion 27
targetSdkVersion 27
and use this in build.gradle:
implementation 'com.android.support:appcompat-v7:27.1.1'
If you're not using SDK 28, you can try Build -> Clean Project or restart Android Studio.
Whenever i start new application in android studio this error pop ups
what should i do
It seems that is because your Compile SDK version is below 23.
Make compileSdkVersion 23 in your buiild.gradle file and rebuild your project.
You should use compileSdkVersion 23 in your build.gradle.
First make sure that you set
compileSdkVersion 23
buildToolsVersion "23.0.1"
and
targetSdkVersion 23
Then Clean-Rebuild-Gradle .
Try this way .I hope it works .
I'm creating an Android app in Android Studio. When I open the layout editor, I see that gray "popup window" on top of the layout, which says that it
Couldn't resolve resource #style/Widget.Holo.Light.ActionMode.Inverse.
This happens when I change the "rendering version" to API 15 (Android 4.0.3).
It worked a minute ago, but when I switched back to the layout, I just got this error.
Edit: I use the AppCompat library.
The theme is defined like this
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar" />
The app works fine when I run it, but doesn't render correctly (at least it's giving me the error) in the editor.
I would be glad if someone could help me with this. Thanks!
This problem occured to me when updating Android Studio to version 1.1.0 and opening an old project without changing anything.
For me only changing the preview's rendering API to 19 or above makes the message disappear.
Hey I faced the same problem and the solution that i figured out was - In android studio Open the Select Theme Dialog and under the All category select NoTitleBar.OverlayActionModes and press okay.
The problem would be solved. But it can show up into a dark theme.
Make you project API Level newer.
For me,the problem occured when my build.gradle content like this:
compileSdkVersion 16
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.xiaoguang.xx"
minSdkVersion 16
targetSdkVersion 16
versionCode 1
versionName "1.0"
}
After i download the sdk 19 and change build.gradle, the problem was fixed.
compileSdkVersion 19
buildToolsVersion "19.1.0"
defaultConfig {
applicationId "com.xiaoguang.xx"
minSdkVersion 19
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
change preview'api