android-min-sdk

Is there an inherent problem with using if statements to define the minSdkVersion in the defaultConfig block?

痴心易碎 提交于 2021-02-11 14:50:14
问题 Background Working on a project that has multiple sub projects (modules) that are dependent on some libraries within the same root project. For the purpose of some testing functionality, we need a higher minSdkVersion (21), but this minSdkVersion is not necessary for the normal use of the application as we can get all we need from version 14. Therefore we've tried to include some if logic to separate the build for testing vs production purposes. The snippet in question is here: android {

What is the minimum SDK version should I choose? (as in Nov 2018)

十年热恋 提交于 2020-01-01 16:47:08
问题 As I am aware, default min SDK set in android studio is 15. I have read that I should increase it as there aren't many (or maybe none) who is still using that android version. Plus, I am planning to use some new features in android studio which only works in higher API. May I know, as for now what would be your minimum SDK version, so as to guide me choose mine. 回答1: The Android Dashboard may answer your question. It contains the most accurate distribution of Android versions with an average

Cannot build app with Gradle with flavors and com.google.gms.google-services plugin

99封情书 提交于 2019-12-24 10:50:05
问题 When i try to compile my app with flavors based on minSdk i receive an error: Error:Execution failed for task ':app:processCurrentDebugGoogleServices'. Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 10.2.0. I pasted example from Android Developers Blog and it's not

Selected Device Incompatible - Android Studio

两盒软妹~` 提交于 2019-12-23 17:30:14
问题 I have fixed this problem before but I can't now and I need a permanent fix. Everything has been going fine in Android Studio when it comes to testing my app. I now run into the problem "The selected device is incompatible." when I go to run the app. I'd like to know how I can keep it from reading my phone's API as 1 rather than changing my minSDK to cater to this problem, if possible. EDIT: Literally just found a fix, not sure if it is permanent. I just restored my defaults in Development

How do I ignore minSdkVersion of library in Android Studio?

邮差的信 提交于 2019-12-20 19:08:32
问题 In my project minSdkVersion = 10, in the library it's 11. I get: BUILD_FAILED - Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version 11 declared in library. How to ignore minSdkVersion of library? 回答1: You need to change your project to library's value 11 , because that attribute means that library was designed to be used at devices at least with API 11. It does not support API 10 at all, so you can not use it according requirements and minimal SDK of your project

What all advantages I can get by increasing minSdk version in android

て烟熏妆下的殇ゞ 提交于 2019-12-14 02:43:22
问题 We have an app on playstore with minSdk version as 15 and we have less than 0.7% active users on api 18 and below. So we were planning to increase our minSdk version to 19. I tried incrementing the minSdk version to 19 and it helped us in reducing apk size by 650KBs approximately in resurces (Current APK size 24MB). I thought by doing this we should be able to decrease method count also because of lesser backporting of support libs. Am I missing something? What all benefits I will get by

Use a specific minSdkVersion only in a Debug mode

无人久伴 提交于 2019-12-10 12:44:36
问题 How can I use a specific minSdkVersion only in a debug mode? I want to use the minSdkVersion 21 for debug mode, but minSdkVersion 15 for the release. I don't wanna use flavors for this because will give troubles. I think the could be like this (but don't work): defaultConfig { applicationId "blacktoad.com.flapprototipo" minSdkVersion 15 debug{ minSdkVersion 21 } targetSdkVersion 23 versionCode 42 versionName "1.72" multiDexEnabled true } 回答1: It took me almost a day to create this script.

What is the minimum SDK version should I choose? (as in Nov 2018)

给你一囗甜甜゛ 提交于 2019-12-04 14:44:10
As I am aware, default min SDK set in android studio is 15. I have read that I should increase it as there aren't many (or maybe none) who is still using that android version. Plus, I am planning to use some new features in android studio which only works in higher API. May I know, as for now what would be your minimum SDK version, so as to guide me choose mine. The Android Dashboard may answer your question. It contains the most accurate distribution of Android versions with an average delta of 7 days. The current page claims : Data collected during a 7-day period ending on October 26, 2018.

Android Studio shows methods from newer API

一个人想着一个人 提交于 2019-12-04 10:57:46
I have noticed that my Android Studio project is suggesting methods and types that are not available for use in my minimum SDK. I am using Android Studio version 1.1.0. I can see that my minimum SDK version is set correctly in the build.gradle file: android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { applicationId "com.pythagoras.sunshine" minSdkVersion 18 targetSdkVersion 21 versionCode 1 versionName "1.0" } ... } but I have noticed that the "auto-complete" feature in Android Studio still suggests methods that are not available in API 18. When I build the project I do

How do I ignore minSdkVersion of library in Android Studio?

大兔子大兔子 提交于 2019-12-03 06:35:07
In my project minSdkVersion = 10, in the library it's 11. I get: BUILD_FAILED - Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version 11 declared in library. How to ignore minSdkVersion of library? You need to change your project to library's value 11 , because that attribute means that library was designed to be used at devices at least with API 11. It does not support API 10 at all, so you can not use it according requirements and minimal SDK of your project. See more details about < uses-sdk > or Find another library which will support API 10 UPDATE: or Use power