gpt4 book ai didi

android-studio - 未发现 ID 为 'crashlytics' 的插件与 Android Studio 最新插件有关

转载 作者:行者123 更新时间:2023-12-03 16:19:24 26 4
gpt4 key购买 nike

对于以下 gradle 构建配置,我面临 Error:(11, 0) Plugin with id 'crashlytics' not found 错误。

buildscript {
repositories {
maven { url 'http://download.crashlytics.com/maven' }
}

dependencies {
}
}

apply plugin: 'android'
apply plugin: 'crashlytics'
apply plugin: 'hugo'


repositories {
maven { url 'http://download.crashlytics.com/maven' }
}




android {
compileSdkVersion 19
buildToolsVersion '20.0.0'

defaultConfig {
applicationId "com.wiznsystems.android"
minSdkVersion 15
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/smartconfiglib.jar')
// You must install or update the Support Repository through the SDK manager to use this dependency.
compile 'com.crashlytics.android:crashlytics:1.+'
compile 'com.android.support:support-v4:19.+'
compile 'com.google.android.gms:play-services:4.2.42'
compile 'com.jakewharton.hugo:hugo-runtime:1.1.0'
compile 'com.squareup.retrofit:retrofit:1.+'
compile 'com.android.support:appcompat-v7:19.+'
compile 'com.jakewharton:butterknife:5.+'
compile 'de.greenrobot:eventbus:2.2.1'
compile 'fr.avianey:facebook-android-api:+@aar'
compile 'com.squareup.picasso:picasso:2.+'
compile 'de.keyboardsurfer.android.widget:crouton:1.8.4'
compile project(':apptentiveandroidsdk')
}

难道我做错了什么?或者是否有任何解决方法可以使其构建?

最佳答案

我遇到过同样的问题。我最终做的是将命令的顺序与 Crashlytics 提供的内容保持一致。我有和你类似的东西,但没有用。一旦将其更改为它工作的文档的确切顺序。这是我现在的样子。希望这可以帮助。

buildscript {
repositories {
mavenCentral()
maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
}
}

apply plugin: 'android'
apply plugin: 'crashlytics'

repositories {
mavenCentral()
maven { url 'http://download.crashlytics.com/maven' }
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:19.+'
compile 'com.android.support:support-v4:19.0.+'
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.joanzapata.android:android-iconify:1.0.6'
compile 'com.github.hotchemi:android-rate:0.3.1'
compile 'com.loopj.android:android-async-http:1.4.5'
compile 'com.github.satyan:sugar:1.3'
compile 'com.crashlytics.android:crashlytics:1.+'
}

android {
compileSdkVersion 19
buildToolsVersion "20"

defaultConfig {
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

关于android-studio - 未发现 ID 为 'crashlytics' 的插件与 Android Studio 最新插件有关,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24777219/

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