>
我在jetified-protobuf-javalite-3.11.0.jar(com.google.protobuf:protobuf-javalite:3.11.0)和jetified-protobuf-lite-3.0.1.jar(com.google.protobuf:protobuf-lite:3.0.1)模块中找到了重复的类com.google.protobuf.AbstractMessagElite。
我还没有看到一个解决我问题的答案。 我很感激任何协助。
。。。应用插件:“com.android.application”应用插件:“idea”应用插件:“io.fabric”应用插件:“kotlin-android”应用插件:“kotlin-kapt”应用插件:“kotlin-android-extensions”应用插件:“io.spring.dependency-management”应用插件:“androidx.navigation.safeargs.kotlin”
android{compileSdkVersion target_sdk_version buildToolsVersion“29.0.2”android.BuildFeatures.DataBinding
defaultConfig{applicationId“com.example.app”minSdkVersion 29 targetSdkVersion target_sdk_version multiDexEnabled true versionCode 1 versionName“1.0”multiDexEnabled true testInstrumentationRunner“androidx.test.runner.androidjunitRunner”vectordrawables.UseSupportLibrary=true
}
packagingOptions{排除'meta-inf/main.kotlin_module'}
buildTypes{release{minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro‘debuggable=true}debug{minifyEnabled false testCoverageEnabled false}}dataBinding{enabled=true}
productFlavors{}
lintOptions{abortOnError false}
kotlinOptions{jvmTarget=javaversion.version_1_8}源集{
main {
main.java.srcDirs += 'src/main/kotlin'
}
}
compileOptions{sourceCompatibility“1.8”targetCompatibility“1.8”kotlinOptions{jvmTarget=javaversion.version_1_8.ToString()}}
lintOptions{abortOnError false禁用“GradleDependency”,“GoogleAppIndexingWarning”}
Configurations.all{resolutionStrategy.eachDependency{DependencyResolveDetails详细信息->def requested=details.requested if(requestedd.group=='org.jetbrains.kotlin'&&requestedd.name=='kotlin-reflection'){details.useversion kotlin_version}}}}
buildscript{ext{gson_version=“2.8.2”dagger_version=“2.25.2”rx_version=“2.2.15”glide_version=“4.7.1”rx_firebase_version=“1.1.3”support_version=“28.0.0”rx_android_version=“2.1.1”glide_version=“4.11.0”target_sdk_version=29}}
依赖项{
implementation fileTree(dir: 'libs', include: ['*.jar'])
def nav_version = "2.3.0"
def lifecycle_version = "2.2.0"
def arch_version = "2.1.0"
def firebase_config = '19.2.0'
implementation ("com.google.firebase:firebase-config:$firebase_config",{
// protobuf-lite that firebase-config and Tink depends on.
exclude group: 'com.google.protobuf',module: 'protobuf-javalite'
exclude group: 'com.google.protobuf',module: 'protobuf-lite'
})
//Base SDK
implementation 'com.amazonaws:aws-android-sdk-appsync:3.0.2'
implementation 'com.amazonaws:aws-android-sdk-core:2.16.13'
//Dagger
implementation 'com.google.dagger:dagger-android:2.28.1'
kapt 'com.google.dagger:dagger-compiler:2.28.1'
kapt 'com.google.dagger:dagger-android-processor:2.28.1'
implementation 'com.google.dagger:dagger-android-support:2.28.1'
//Firebase/Amazon
implementation 'com.amazonaws:aws-android-sdk-iot:2.16.13'
implementation 'com.amazonaws:aws-android-sdk-mobile-client:2.16.13'
implementation "com.firebase:firebase-jobdispatcher:0.8.6"
implementation 'com.firebaseui:firebase-ui-auth:5.0.0'
implementation 'com.google.firebase:firebase-analytics:17.4.4'
implementation 'com.google.firebase:firebase-auth:19.3.2'
implementation 'com.google.firebase:firebase-core:17.4.4'
implementation 'com.google.firebase:firebase-database:19.3.1'
implementation 'com.google.firebase:firebase-firestore:21.5.0'
implementation 'com.google.firebase:firebase-storage:19.1.1'
///Glide
implementation "com.github.bumptech.glide:glide:$glide_version"
kapt "com.github.bumptech.glide:compiler:$glide_version"
//JETBRAINS
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72'
//Kotlin
implementation 'org.jetbrains.kotlin:kotlin-reflect:1.3.72'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.7'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.11.1'
//Lifecycle
// https://mvnrepository.com/artifact/android.arch.lifecycle/common-java8
implementation(group: 'androidx.lifecycle', name: 'lifecycle-common-java8', version: '2.2.0')
// Annotation processor
// alternately - if using Java8, use the following instead of lifecycle-compiler
implementation 'androidx.lifecycle:lifecycle-common-java8:2.2.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation "androidx.lifecycle:lifecycle-service:$lifecycle_version"
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.0-alpha05'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-alpha05'
implementation "androidx.navigation:navigation-dynamic-features-fragment:2.3.0"
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.0'
implementation 'androidx.navigation:navigation-ui-ktx:2.3.0'
// optional - ReactiveStreams support for LiveData
implementation "androidx.lifecycle:lifecycle-reactivestreams-ktx:$lifecycle_version"
// optional - ProcessLifecycleOwner provides a lifecycle for the whole application process
implementation "androidx.lifecycle:lifecycle-process:$lifecycle_version"
// optional - Test helpers for LiveData
testImplementation "androidx.arch.core:core-testing:$arch_version"
kapt 'androidx.databinding:databinding-compiler:4.0.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.8.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:4.8.0'
//Mini
implementation 'com.github.pabloogc:Mini:1.0.5'
kapt 'com.github.pabloogc.Mini:mini-processor:1.0.5'
annotationProcessor 'com.github.pabloogc.Mini:mini-processor:1.0.5'
// Required for Cognito
implementation('com.amazonaws:aws-android-sdk-cognitoauth:2.16.13@aar') { transitive = true }
//Rx
implementation 'io.reactivex.rxjava2:rxjava:2.2.19'
implementation "io.reactivex.rxjava2:rxandroid:$rx_android_version"
implementation 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.5@aar'
//Support
implementation 'androidx.activity:activity-ktx:1.2.0-alpha06'
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.browser:browser:1.2.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta8'
implementation 'androidx.core:core-ktx:1.3.0'
implementation 'androidx.core:core:1.5.0-alpha01'
implementation 'androidx.fragment:fragment:1.3.0-alpha06'
implementation 'androidx.fragment:fragment-ktx:1.3.0-alpha06'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.legacy:legacy-support-core-utils:1.0.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.preference:preference-ktx:1.1.1'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
implementation 'androidx.vectordrawable:vectordrawable-animated:1.1.0'
implementation 'androidx.viewpager2:viewpager2:1.0.0'
implementation 'com.google.android.material:material:1.3.0-alpha01'
implementation 'com.google.android.gms:play-services-auth:18.0.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.google.android.gms:play-services-places:17.0.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.google.android.libraries.places:places:2.3.0'
implementation 'com.google.guava:guava:29.0-jre'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
implementation 'com.karumi:dexter:6.2.1'
implementation 'com.pavelsikun:material-seekbar-preference:2.3.0'
implementation 'info.guardianproject.panic:panic:1.0'
implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1'
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
//Test
testImplementation 'junit:junit:4.13'
testImplementation 'com.natpryce:hamkrest:1.7.0.0'
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testImplementation 'org.junit.platform:junit-platform-runner:1.6.2'
androidTestImplementation "androidx.navigation:navigation-testing:$nav_version"
androidTestImplementation 'androidx.test:runner:1.3.0-rc01'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-rc01'
}存储库{google()mavenCentral()maven{url“http://dl.bintray.com/jetbrains/spek”}应用插件:'com.google.gms.google-services'//Kotlin注释处理器应用插件:'kotlin-kapt'
应用插件:“androidx.navigation.safeargs.kotlin”
}
kotlin{experimental{coroutines“Enable”}}。。。
您需要在其中一个导入上添加排除项,这样它只添加一次包。
示例:
// Now junit will not include hamcrest library. Therefore there will be no
//dependency conflict.
compile ('junit:junit:4.12'){
exclude group: 'org.hamcrest', module:'hamcrest-core'
}
当我尝试在android设备上我的android应用程序时,gradle控制台报告以下错误: 当我搜索“AsynchTtpClient”类时,我发现它确实存在于两个不同的位置: 第一条路径似乎暗示它是一个“缓存”文件...因此,我尝试了,但在重新构建gradle之后,这两个文件仍然存在,并且我尝试应用程序。我在另一篇文章中读到,它可以通过删除其中一个文件来解决...于是我去了缓存位置,把“1.4.
当我尝试构建我的android应用程序时,我如何修复这个问题。我将实现'com.google.android.gms:play-services-ads:19.8.0'更新为实现'com.google.android.gms:play-services-ads:20.4.0',现在我得到了这个错误。 jetified-play-services-measurement-18.0.2-runtime
错误描述: 错误:任务“:app:transform类与Jar合并进行检测”的执行失败。 这是我的等级代码
当我运行composer update时,我得到了这些错误,问题是我已经安装了PHP7,但我不知道为什么会得到这个错误(我使用的是docker-compose) 这是我的php版本
我正在android studio中创建一个简单的应用程序,用于使用Volley库管理通过wifi连接的设备。当我运行应用程序时,我得到以下错误。 java.lang.RuntimeException:错误URL 192.168.137.139:8081/Zeroconf/switch在com.android.volle.toolbox.basicnetwork.performRequest(ba
在Laravel 8中,我使用标准结构: 请求看起来很标准: 运行composer DumpaAutoLoad时,出现以下错误: 位于./App/Http/Requests/Api/Group/StoreCategoryRequest.php中的类App\Http\Requests\Api\Category\StoreCategoryRequest不符合psr-4自动加载标准。跳过 我试图将名称空
我试图实现方法底部导航视图,但当我运行代码时,我得到了这个错误 build.gradle(模块应用程序)