android - 在我的代码中找不到导致 R 错误的方法 android
问题描述
错误:(15, 0) 在根项目“ud839_Miwok-Starter-code”上找不到参数 [build_41ptob9czd5ucux9ngzednsn4$_run_closure1@100eeb5] 的方法 android()。打开文件
我还尝试在仍然连接互联网的情况下重建 gradle,
下面是我的 build.gradle 代码
// 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:2.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
android {
buildToolsVersion "28.0.3"
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
解决方案
推荐阅读
- windows - Tomcat - 删除卡住的 .war 应用程序
- python - 加快日期时间转换为混合时区 - Python pandas
- sql-server - 如何在 sp_executesql 中将表变量与 JSON 数据一起使用
- airflow - 如何定期重新运行相同的 DAG?
- scala - 微笑 - 模型持久性 - 如何将模型写入 HDFS?
- c - GCC/Clang 如何强制没有未定义的符号?
- pdo - 更新查询以增加现有值
- python - Python 类型错误:“numpy.ndarray”对象不可调用
- sql - 我可以在 SQL 的 HAVING 子句中比较两个 COUNT 语句吗?
- mysql - 尝试创建具有多个外键的表时,我收到有关外键约束的错误