I need to see which SDKs I can choose, but when I go to the module settings (Android Studio (Preview) 0.5.8) I see only this
and I can't find this settings, where I can choose the Target SDK
How can I do it?
You have to modify the targetSdkVersion field of the build.gradle file.
This is an example:
defaultConfig {
minSdkVersion 10
targetSdkVersion 19
versionCode 1
versionName "1.0.0"
}
Hope it helped, Mattia
Related
I followed each and every step given on
https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml.html
I am not able to create Font resource file at the following step -
Right-click the font folder and go to New > Font resource file. The New Resource File window appears.
I am doubtful now, whether I can assign fonts in XML in Android Studio 2.3.3
my build.gradle is as follows
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.crescomobilitysolution.navigationdrawerexercise"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
No, it s supported in Android Studio 3.0 and over
I was trying to install the APK I compiled from Android Studio but it seems like the APK generated is not compatible. Below is the image for my settings:
Properties
http://prntscr.com/ef0rjs
Flavors:
http://prntscr.com/ef0rr6
The phone im installing the APK is Lollipop 5.1
thanks
can you show here your Android Manifest or build.gradle?
just install the versions in your SDK Manager :)
but try this one in your build.gradle set your minSDK to lollipop
compileSdkVersion 24
buildToolsVersion "24.0.1"
defaultConfig {
applicationId "app_name"
minSdkVersion 16 //change it to the version of lollipop :)
targetSdkVersion 24
versionCode 1
versionName "1.0"
I created an app with the API 22 and I want to know if is necessary create a new project to make it compatible with the previous versions (for example with the API 19) or if I can do something simpler and efficient
If you're using gradle just set the minSdkVersion to the number you'd like to use:
defaultConfig {
applicationId "com.example.mypackage"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
in the app's build.gradle file
There are 2 way,
1) Set your "minSdkVersion" from gradle file
or
2) In Android Studio,
File --> Project Structure --> app (on left menu) --> Flavors
then set "Min Sdk Version"
In android studio, i have create new project that run on 2.2(that shows 100% compatibility). The project is about calculation. I have installed on my phone(lollipop), and the app is working properly. But, I tried to install in my friends kitkat phone, the app is installed but, When i open the app, that shows Unfortunately the app has stopped. So, I need a help. What I have to do?
Thank You.
May be you set Minimum SDK at Lollipop check it out in build.gradle file.
android {
compileSdkVersion 24
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.communitynow.communitynow"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
and add
compile 'com.android.support:multidex:1.0.0'
in gradle file
Here in defaultConig{} minSdkVersion should be 15 or according to your minimum android run requirement.
You need to create a kit kat emulator to run the app on then check the log cat to see what the error is.
I downloaded Arc library form github and imported it as module then I got this error.
Error:Cause: failed to find target with hash string 'android-4' in: C:\Users\shahek\AppData\Local\Android\sdk
Open Android SDK Manager
I also installed Api 15.
This is my build.gradle setting.
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.example.shahek.myapplication"
minSdkVersion 18
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
You must install version 23 and all this things must be solved.
If it don't help you,
try to download this library from github and add into project and modify min sdk version in gradle/manifest to yours 18.
Good luck.