您的位置:首页 > 移动开发 > Android开发

刚接触android开发时碰到的一些问题

2016-11-22 03:13 507 查看
用android-studio  build 工程以后   build.gradle 中 

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'io.reactivex:rxandroid:0.24.0'

/*compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'*/
compile 'com.android.support:appcompat-v7:23.+'
compile 'com.android.support:design:23.+'

compile 'com.jakewharton:butterknife:7.0.1'
compile files('libs/android-async-http-1.4.8.jar')
compile files('libs/jpush-android-2.1.7.jar')
apt 'com.yahoo.squidb:squidb-processor:1.0.1'
compile 'com.yahoo.squidb:squidb:1.0.1'
compile 'com.yahoo.squidb:squidb-annotations:1.0.1'
compile files('libs/BaiduLBS_Android.jar')
compile project(':library')
compile files('libs/universal-image-loader-1.5.6-with-src.jar')

}


注释掉的两行报错~

错误信息大致如下

Information:Gradle: Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources]

Information:2015/4/8 17:05 - Compilation completed with 2 errors and 0 warnings in 29s 30ms

Error:Gradle: Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'E:\PublicFile\android\android-sdk_r24.1.2-windows\android-sdk-windows\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1

H:\IdeaProiectsAndroid\XListTest\app\build\intermediates\manifests\full\debug\AndroidManifest.xml

Error:Error:line (13)Gradle: No resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher').

其实就是版本的问题

我将

compileSdkVersion 23

修改为23

targetSdkVersion 23

目标sdk修改为23

compile 'com.android.support:appcompat-v7:23.+'
compile 'com.android.support:design:23.+'

同时修改了 appcompat 为v7:23.+   

解决问题!!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: