gpt4 book ai didi

android - 程序类型已经存在:com.flurry.android.Consent

转载 作者:行者123 更新时间:2023-12-03 05:09:49 25 4
gpt4 key购买 nike

最近,我想对我的android应用程序实现波动分析
但是,在遵循说明并运行程序之后,我遇到了以下所示的错误。

非常感谢您的帮助并表示感谢!

程序类型已经存在:com.flurry.android.Consent

消息{种类=错误,文本=程序类型已存在:com.flurry.android.Consent,来源= [未知源文件],工具名称= Optional.of(D8)}

应用程序级别的gradle代码如下:

apply plugin: 'com.android.application'

android {
compileSdkVersion 26
defaultConfig {
applicationId "com.falcontech.falcontech"
minSdkVersion 14
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}

dependencies
{
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
//implementation 'com.google.android.gms:play-services-plus:15.0.0'
//$
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation files('/Users/Frank/Desktop/Desktop/flurry_Android_sdk 2/Flurry-Analytics/flurryAnalytics_10.0.0.jar')
implementation 'com.google.android.gms:play-services-analytics:15.0.0'
}

应用程序级别的gradle在这里:
// 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.1.1'
// Add this line
classpath 'com.google.gms:google-services:3.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
}

最佳答案

您可以通过在主应用程序的Gradle配置文件中添加以下内容来通过aar进行集成:

repositories {
jcenter()
}

dependencies {
// Required for Flurry Analytics integration
compile 'com.flurry.android:analytics:10.0.0@aar'
}

删除添加到 list 文件和jar文件的权限,然后同步gradle文件。在您的应用程序类中,请确保包括以下内容:
import com.flurry.android.FlurryAgent;
import static android.util.Log.VERBOSE;

关于android - 程序类型已经存在:com.flurry.android.Consent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49945516/

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