gpt4 book ai didi

android - 错误 :Unable to find method 'com. android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;安卓工作室 3

转载 作者:太空宇宙 更新时间:2023-11-03 12:14:24 24 4
gpt4 key购买 nike

Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network).

The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart). Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

这是我的文件build.gradle

apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "com.minh.findtheshipper"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
ext.kotlin_version = '1.1.2-4'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
manifestPlaceholders = [onesignal_app_id: "c435c556-1f73-4ac6-9c50-11d2c08e803c",
// Project number pulled from dashboard, local value is ignored.
onesignal_google_project_number: "REMOTE"]
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '26.0.2'
}
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile('com.mikepenz:materialdrawer:5.9.2@aar') {
transitive = true
}
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.jakewharton:butterknife:8.6.0'
compile 'com.mikepenz:google-material-typeface:3.0.1.0.original@aar'
compile 'com.mikepenz:fontawesome-typeface:4.7.0.0@aar'
compile 'com.facebook.android:facebook-android-sdk:4.27.0'
compile 'com.sdsmdg.tastytoast:tastytoast:0.1.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.github.bumptech.glide:glide:4.0.0'
compile 'com.google.android.gms:play-services-maps:11.4.2'
compile 'com.google.maps.android:android-maps-utils:0.5'
compile 'com.google.android.gms:play-services-location:11.4.2'
compile 'com.google.android.gms:play-services-places:11.4.2'
compile 'cn.pedant.sweetalert:library:1.3'
compile 'com.mikepenz:actionitembadge:3.3.1@aar'
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.android.support:support-v4:26.1.0'
compile 'com.google.firebase:firebase-core:11.4.2'
compile 'com.google.firebase:firebase-database:11.4.2'
compile 'com.google.firebase:firebase-messaging:11.4.2'
compile 'com.github.markushi:circlebutton:1.1'
compile 'com.onesignal:OneSignal:3.6.5'
compile 'com.kofigyan.stateprogressbar:stateprogressbar:0.0.6'
compile 'com.squareup.okhttp3:okhttp:3.9.0'
testCompile 'junit:junit:4.12'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
}
apply plugin: 'com.jakewharton.butterknife'
apply plugin: 'realm-android'
apply plugin: 'com.google.gms.google-services'

最佳答案

我通过删除“应用插件:‘com.jakewharton.butterknife’”解决了我的问题。不要删除 'classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'。它会出错,你之前是 BindView 的一切。

关于android - 错误 :Unable to find method 'com. android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;安卓工作室 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46967925/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com