uses-sdk:minSdkVersion 1 cannot be smaller than version 4 declared in library [com.android.support:sup

根据报错提示:最低兼容版本api 1低于v7兼容类库的api 7,找到app的gradle发现设置了最低兼容9,并不是1啊.

android {
...
    defaultConfig {
        minSdkVersion 10
        targetSdkVersion 19
    }
...
}

完美搞定 perfect
时间: 2024-12-18 01:01:14

uses-sdk:minSdkVersion 1 cannot be smaller than version 4 declared in library [com.android.support:sup的相关文章

Android -- uses-sdk:minSdkVersion 10 cannot be smaller than version L declared in library com.android.support:appcompat-v7:21.0.0-rc1

这是一个报错,是我在Android Studio上添加完Support-v4和v7包之后爆出的错误,百度了好久也没有百度到.当时我的项目有minSdkVersion 19. 设置版本最小为L的时候也会出错,并且我的测试机是4.3,根本就无法安装. defaultConfig { .... minSdkVersion 'L' .... } 解决办法 1.将compileSdkVersion设置成为 compileSdkVersion 'android-L' 这个解决方案只适用于L版本,如果尝试部署

Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 10 declared in library

Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 10 declared in library [org.piwik.sdk:piwik-sdk:0.0.3] /Users/weichunsheng/Documents/android_app/app/build

Android Studio常见问题 -- uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library

问题描述 * What went wrong:Execution failed for task ':app:processDebugManifest'.> Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library D:\AndroidStudioProjects\StudioDemo\app\build\intermediates\exploded

关于Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 16 declared in lib

日志有些长,标题显示不完,截图如下: 有图可以知道,是因为在引入的libary里面的build.gradle文件里面的minSdkVersion不一致导致这个问题出现的.修改一致即可.这个问题是在compileSdkVersion 版本改成25后出现的,之前的没有发现.看来google在这方面越来越严了,以后这方面的代码应该保持一致,不仅仅是minSdkVersion,还有targetSdkVersion之类的版本

007. 使用百度地图SDK时有如下报错:Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering

问题描述:Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering,除了以上报错,还有其他相关报错,could not find class/method XXXX 007. 使用百度地图SDK时有如下报错:Could not find c

关于Android sdk有事安装出现报Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml错误的问题 只要两部就可以搞定

第一步 Windows 系统hosts位于 C:\Windows\System32\drivers\etc\hosts Android(安卓)系统hosts位于 /system/etc/hosts Mac(苹果电脑)系统hosts跟Linux一样位于 /etc/hosts iPhone(iOS)系统hosts跟Linux Mac一样位于 /etc/hosts Linux系统hosts位于 /etc/hosts 第二步 链接:http://pan.baidu.com/s/1c2uZ3sk 密码:m

在Android2.3.3即minSdkVersion 10上使用android.support.v4.widget.SwipeRefreshLayout和android.support.design

由于新的项目需要支持2.3.3版本的Android机型,额,2.3.3左右的已经份额非常非常小了, 还需要支持,真蛋疼. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/re

Android RecyclerView And CardView

Google I/O 2014大会公布Android L系统,还有Material Design全新的设计风格.而Material Design卡片式的设计.Google Play应用商店和G+ APP已经变成这样的卡片式的风格.为了配合Material Design, Google特意在SDK中加入了RecyclerView 和 CardView,只是它加入在Support-V7库中,可能是为了兼容旧版本号吧.Google官方已经说明确怎么用了,这里: https://developer.an

Android studio 导入ApiDemo

1.import 项目,sdk目录:sdk\samples\android-21\legacy\ApiDemos,import时一直下一步就ok了. 2.Error:Error: The file name must end with .xml,重命名添加.xml 3.Run app,这时可能碰到3个问题: 此问题需要导入supportv4包 出现新问题: Error:Execution failed for task ':app:processDebugManifest'.> Manifest