错误:配置根项目 2时出现问题。完整的源代码'。
无法解析配置':classpath'的所有依赖项。 无法解决com.android.tools.build:gradle-core:2.0.0-alpha9。 要求: 项目:> com.android.tools.build:gradle:2.0.0-alpha9 无法解决com.android.tools.build:gradle-core:2.0.0-alpha9。 找到不一致的模块元数据。描述符:com.android.tools.build:grad:2.0.0-alpha9错误:错误的模块名称:expected =' gradle-core'实测值=' gradle这个'
的build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha9'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
答案 0 :(得分:0)
试试这个:
typedef std::map<ID_type, std::list<Object>::iterator> IdIterMap;
IdIterMap existing_ids;
for (std::list<Object>::iterator it = memberList.begin();
it != memberList.end(); ++it) {
existing_ids[it->ID()] = it;
}
for (std::list<Object>::iterator it = paramList.begin();
it != paramList.end(); ++it) {
IdIterMap::iterator map_it = existing_ids.find(it->ID());
if (map_it != existing_ids.end()) {
*(map_it->second) = *it;
} else {
memberList.push_back(*it);
}
}
答案 1 :(得分:0)
尝试将以下行添加到项目/ build.gradle
classpath 'com.android.tools.build:gradle:2.2.3'
<强>项目/的build.gradle 强>
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}