标签: android-gradle-plugin

无法解决:com.google.firebase:firebase-auth:11.0.2

我刚刚更新了sdk,google play服务和google存储库,但仍然发生了这个错误.请帮忙,我想使用电话号码整合身份验证.

SDK Manager

logcat的

Build.gradle模块:项目

    // Top-level build file where you can add configuration options common to all sub-projects/module
return
 buildscript {
    ext.kotlin_version = '1.1.3-2'
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.google.gms:google-services:3.1.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
allprojects {
    repositories {
        jcenter()
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)

Build.gradle模块:App

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'


android …
Run Code Online (Sandbox Code Playgroud)

android firebase build.gradle android-gradle-plugin firebase-authentication

-1
推荐指数
1
解决办法
2206
查看次数

Gradle sync失败:找不到参数的方法compile()

我在添加新的依赖项后尝试gradle构建项目,build.gradle(Module.app)但得到以下错误.不知道我在这里做错了什么.

依赖试图添加:com.loopj.android:android-async-http:1.4.9

Gradle sync failed: Could not find method complie() for arguments [com.loopj.android:android-async-http:1.4.9] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
        Consult IDE log for more details (Help | Show Log)
Run Code Online (Sandbox Code Playgroud)

这是我的build.gradle档案

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.2'

    defaultConfig {
        applicationId "com.londonappbrewery.climapm"
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:25.3.1'
    complie 'com.loopj.android:android-async-http:1.4.9' …
Run Code Online (Sandbox Code Playgroud)

android build.gradle android-gradle-plugin

-1
推荐指数
1
解决办法
1142
查看次数

以下项目选项已弃用并已删除:

“以下项目选项已弃用并已删除”。我在 gradle.properties 中添加了“android.enableAapt2=false”,但它无法解决我的问题。

android aapt android-gradle-plugin

-2
推荐指数
1
解决办法
4063
查看次数

Android gradle插件更新至7.0版本

我想更新到 android gradle 插件 7.0。有什么方法可以测试我需要在项目或代码中进行哪些更改?android studio 有没有预览工具?

android gradle android-studio android-gradle-plugin android-gradle-7.0

-2
推荐指数
1
解决办法
1万
查看次数

删除builder-model-0.11.0.jar无法解决错误

我最近从Android studio 0.6.0升级到0.8.0 Beta.当我尝试将项目运行到设备上时出现此错误:

NoSuchMethodError:com.android.builder.model.AndroidArtifact.getOutputs()Ljava/util/Collection.

我用Google搜索并按照此链接建议需要删除名为builder-model-0.11.0.jar的文件.我做了,但似乎没有帮助.错误仍然存​​在.有帮助吗?

android android-studio android-gradle-plugin

-7
推荐指数
3
解决办法
1819
查看次数