Could not find method android() for arguments when building Android project from gradle
来源:互联网 发布:伯俊软件 编辑:程序博客网 时间:2024/05/01 22:19
https://stackoverflow.com/questions/26243480/could-not-find-method-android-for-arguments-when-building-android-project-from
The proposed solution is:
...in the root project's build.gradle:
ext { compileSdkVersion = 19 buildToolsVersion = "19.0.1"}
in all the android modules:
android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion}
...
One think I noticed was that this doesn't work on older versions of gradle (I was trying with 1.10 and got an error). With Gradle 2.1 this seems to work correctly though.
阅读全文
0 0
- Could not find method android() for arguments when building Android project from gradle
- Could not find method android() for arguments on root project '项目名' of type org.gradle.api.Project.
- Could not find method android() for arguments on root project '项目名' of type org.gradle.api.Project.
- Could not find method android() for arguments
- Gradle sync failed: Could not find method android() for arguments [build_aj7feyco0x5e5hj3g6wttaj6$_
- 错误:Gradle sync failed: Could not find method android() for arguments [build_6d4hiu27bgm2ho4bez6d80wx
- Gradle构建失败:报错Could not find method android() for arguments
- Android Studio Exception: Could not find method android() for arguments
- Android Studio Exception: Could not find method android() for arguments
- Android Studio:Could not find method android() for arguments
- Android Studio Could not find method runProguard() for arguments?
- 解决Could not find method android() for arguments问题
- 解决Could not find method android() for arguments问题
- 解决问题:Could not find method android() for arguments
- 解决Could not find method android() for arguments问题
- Build gradle : Could not find method packagingOptions() for arguments root Project “fasterDev”
- Build.gradle Could not find method apply() for arguments和Android studio错误: 非法字符: '\ufeff'
- Could not find method compile() for arguments
- Docker(1)-- 如何安装Docker
- HelloKotlin(kotlin配置环境变量,kotlin hello world,kotlin 入门)
- groovy的集合 Range
- 关于ajax 返回的json数据动态展现在jsp页面的问题 20170525
- 性能优化
- Could not find method android() for arguments when building Android project from gradle
- 如何自定义NavigationBar的高度
- Makefile个人学习笔记一
- gsoap及onvif开发客户端框架的生成(一)
- 有序列标签
- bzoj 3530 [Sdoi2014]数数
- android UI 进程
- android开发常见编程错误总结
- Vue基础之Vue实例