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

用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.+   

解决问题!!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值