刚接触android开发时碰到的一些问题
2016-11-22 03:13
507 查看
用android-studio build 工程以后 build.gradle 中
注释掉的两行报错~
错误信息大致如下
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').
其实就是版本的问题
我将
修改为23
目标sdk修改为23
同时修改了 appcompat 为v7:23.+
解决问题!!!
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.+
解决问题!!!
相关文章推荐
- Android 开发时候碰到的一些问题
- Android 开发一个Activity 启动另一个Activity碰到的一个问题
- [开发]Android开发中碰到的问题
- Android:Eclipse开发环境的一些操作问题
- Android 边用边学 之 Android开发的一些小问题
- Android中TabHost中实现标签的滚动以及一些TabHost开发的奇怪问题
- windwos server 2008下用visual studio 2005开发碰到的一些问题
- ANDROID游戏开发——我在写飞机类游戏时遇到的一些问题与思考
- android开发中遇到的一些问题
- 驱动开发中碰到的一些问题笔记记录一下
- 使用cxf开发中碰到的一些问题
- 使用vs2003进行web开发的时候碰到的一些小问题
- Windows7部署Android开发环境傻瓜式教程(遇到的一些问题)
- Android开发过程中遇到的一些小问题
- windows moblie开发中读取XML文件所碰到的一些问题
- 关于android开发遇到的一些问题的解决办法---间断的更新
- Android 开发遇到的一些问题整理
- Android开发的一些小问题
- 开发中碰到过的一些问题总结,给自己也给大家一个参考!
- eclipse开发Android程序时一些常见问题与错误提示