I am receiving this error when updating targetSDKVersion to android oreo
Error:Failed to find target with hash string 'android-O' in: C:\Users\admin\AppData\Local\Android\Sdk
Install missing platform(s) and sync project
when I am clicking on "Install missing platform(s) and sync project", it is showing a popup with this message.
I updated android SDK but it keep showing this popup.
Needed solution for this.
To fully test your app's compatibility with Android P and begin using new APIs, open your module-level build.gradle file and update the compileSdkVersion and targetSdkVersion as shown here:
android {
compileSdkVersion 28
defaultConfig {
targetSdkVersion 28
}
...
}
Read Set Up the Android P SDK.
Related
<uses-sdk android:minSdkVersion="18" />
This is my android sdk minimum version I installed both facebook and paytm sdk in my app. While generating the build, I'm getting error code 1.
This is the error I'm getting while generating build
If I generate build with faceboook sdk alone, i can generate the build.if both facebook and allinone paytm sdk exist, error occurs. Is there any way to generate build without removing allinOne sdk??
You need to change the minSdkVersion in app/build.gradle
android {
defaultConfig {
applicationId "com.example.merchantapp"
minSdkVersion 18
compileSdkVersion 30
targetSdkVersion 30
buildToolsVersion '29.0.3'
}
}
The one mentioned by you is not the correct way
this is my build.gradle setting and this is my system info
I'm trying to run the react native app on android 11 but it is keep crashing on launch without giving any error I have tries almost every solution including setting in build.gradle
buildToolsVersion = "30.0.0"
minSdkVersion = 21
compileSdkVersion = 30
targetSdkVersion = 30
supportLibVersion = "30.0.0"
ndkVersion = "20.1.5948944"
multiDexEnabled = true
setting ** target API to"30" ** in AndroidManifest.xml
the Gradle version I'm using is
Gradle plugin version is 4.1.3
Gradle version is 6.7**
please help me find the solution in this regard thanks
I got an error like this when setting targetSdk version to 30 it's happening because of okhttp version and fixed it by using the latest version
implementation("com.squareup.okhttp3:okhttp:4.9.1")
implementation("com.squareup.okhttp3:okhttp-urlconnection:4.9.1")
add this in your android/app/build.gradle
This answer has been provided by manohar-octifi (github discussion):
If you are using #sentry/react-native and the version is lower than 2.0.0, then update the version to 2.0.0 or higher (I updated to 2.2.0). This should fix the problem.
As per the new Google Play policy, all apps must target at least Android 10 (API 29) before November 2, 2020.
More info: https://developer.android.com/distribute/play-policies
React Native is targeting API 28 as of today(v0.63), are there any plans to update the target SDK version?
Open android/build.gradle in your React Native project and change compileSdkVersion and targetSdkVersion values to 29.
android/build.gradle
buildscript {
ext {
buildToolsVersion = "29.0.5"
minSdkVersion = 16
compileSdkVersion = 29
targetSdkVersion = 29
}
}
Then go Android Studio and Run "Sync Project with File System" (File > Sync Project with Gradle Files).
It's necessary to upgrade your React Native version. You can see the instructions here.
A simple cli upgrade did the trick for me:
npx react-native upgrade
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'm trying to import Facebook SDK 3.15.0 to Android Studio 0.6.1.
I do follow Rani's explanation on using facebook sdk in android studio both for Android Studio earlier than 0.5.5 & the later one.
The error I get says something like this.
**Error:Execution failed for task ':app:processDebugResources'.
Error: A library uses the same package as this project: liquidcode.se.facebooktest
You can temporarily disable this error with android.enforceUniquePackageName=false
However, this is temporary and will be enforced in 1.0**
I also did include it in the setting.gradle & imported as module for the app.
I read now that many have the same problem, but how to fix it?
Thank you.
Delete the ApplicationId from your facebook sdk library build.gradle file.
It should end up looking something like this.
//Wrong
defaultConfig {
applicationId "com.bz.buktest"
minSdkVersion 10
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
//Right
defaultConfig {
minSdkVersion 10
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
Done. Your problem should be solved. Hope you got it.
I would start over, and add the project via the File -> Project Structure dialog. Mine worked with minimal additional effort after adding the sdk via the Project Structure dialog.
After adding via the Project Structure dialog, you need to change buildToolsVersion in Facebook's build.gradle file.
Also delete the component named FacetManager in Facebooks .iml file.
If you follow those three steps you should have Facebook's sdk properly integrated into your project.