我刚刚在基本操作系统0.3.1(基于Ubuntu 14.04 LTS)上安装了Android Studio,但出现以下错误:
Error:(24,13) Failed to resolve: com.android.support:appcompat-v7:15.+ Install Repository and sync project Show in File Show in Project Structure dialog
当我点击“安装存储库和同步项目”,我得到这个错误:
Loading SDK @R_796_4045@ion... Ignoring unkNown package filter 'extra-android-m2repository' Warning:The package filter removed all packages. There is nothing to install. Please consider trying to update again without a package filter.
我的build.gradle(模块:应用程序)
apply plugin: 'com.android.application' android { compileSdkVersion 15 buildToolsversion "19.1.0" defaultConfig { applicationId "com.example.android.happybirthday" minSdkVersion 15 targetSdkVersion 15 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs',include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:15.+' }
我的build.gradle(项目:HappyBirthday)
连接到手机
使用html的Android应用程序
在bash脚本中运行apktool
在Windows 7的VirtualBox中运行的Ubuntu内部不能识别Android设备?
Android开发工具
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }
使用CMake(而不是Qt Creator)为Android编译Qt应用程序
如何获得“cpu%”比TOP命令更高的精度?
eclipse文件浏览器拉一个文件,无法在windows中打开文件“正在使用的文件”
将SDL2扩展库添加到android项目
在HttpURLConnection中设置setChunkedStreamingMode无法将数据传递给服务器
从Android Studio转到:工具>> Android >> SDK管理器选择并安装“Extras | Android Support Repository”
如果不帮助,请张贴您的gradle文件。
尝试在菜单工具>> Android >> SDK管理器>> SDK工具(选项卡)上安装选项Android支持库。
在创建一个新项目之前,这对我很有用。
得到同样的错误。
Mac OSX
五.10.9.5
Android工作室1.4.1
的build.gradle:
之前:
android {compileSdkVersion 15 buildToolsversion“19.1.0”
后:
android {compileSdkVersion 23 buildToolsversion“19.1.0”
之前:
依赖项{compile filetree(dir:'libs',include:['* .jar'])testCompile'junit:junit:4.12'compile'com.android.support:appcompat-v7:15.+'}
后:
依赖{compile filetree(dir:'libs',include:['* .jar'])testCompile'junit:junit:4.12'compile'com.android.support:appcompat-v7:23.1.0'}
AndroidStudioProjects>'app_name'> app> build.gradle
apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsversion "23.0.2" defaultConfig { applicationId "com.example.johnkonderla.condor_paint" minSdkVersion 16 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'),include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:design:23.1.0' }
以上修改+ Build >> Clean Project。
希望有所帮助!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。