java - 原因:org.jetbrains.plugins.gradle.tooling.util 错误
问题描述
来吧,我正在尝试获取所有组合,但我无法得到错误,我无法弄清楚。原因是:原因:org.jetbrains.plugins.gradle.tooling.util.ModuleComponentIdentifierImpl.getModuleIdentifier()Lorg/gradle/api/artifacts/ModuleIdentifier;
更多信息
Gradle 同步失败:原因:org.jetbrains.plugins.gradle.tooling.util.ModuleComponentIdentifierImpl.getModuleIdentifier()Lorg/gradle/api/artifacts/ModuleIdentifier;有关更多详细信息,请参阅 IDE 日志(帮助 | 显示日志)(734 毫秒)
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 29
buildToolsVersion '29.0.2'
defaultConfig {
applicationId "pubg.looter.map"
minSdkVersion 22
targetSdkVersion 29
versionCode 2
versionName "1.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-messaging:19.0.1'
implementation 'com.google.android.gms:play-services-ads:18.1.0'
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
解决方案
推荐阅读
- mongodb - 为什么即使事务失败,mongo 也会保存更改?
- javascript - 如何在 React 中将 ref 向下传递多个级别?
- r - 在数据框中移动整行
- c# - (C#) 垂直对齐 CheckedListBox 项的文本
- python - 使用 SQLAlchemyAutoSchema 访问烧瓶棉花糖模式类中的模型道具
- python - 字符串中的数据在 python 中变得不可用
- python - 如何对数据集中的所有值产生相同数量的噪声?
- linux - 仅测试VM中内存负载的方法是什么
- nsis - NSIS - 另一种为静默模式调用页面回调函数的方法
- docker - Symfony 与 DDEV CLI 数据库连接