gpt4 book ai didi

java - 如何解决执行 com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable 时发生故障

转载 作者:行者123 更新时间:2023-12-05 03:35:59 26 4
gpt4 key购买 nike

尝试调试应用程序时出现此错误

还在 Gradle.properties 中更新了这两个属性

android.useAndroidX=true
android.enableJetifier=true

使用

android {
compileSdkVersion 30
buildToolsVersion "28.0.3"
defaultConfig {

minSdkVersion 23
targetSdkVersion 30
versionCode 192
versionName "2.2.57"
}

Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnableDuplicate class androidx.collection.LruCache found in modules collection-1.1.0 (androidx.collection:collection:1.1.0) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.accessibilityservice.AccessibilityServiceInfoCompatfound in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.app.ActivityCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.app.NavUtils found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.app.NotificationCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.app.NotificationCompat$Builder found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.app.ServiceCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.app.ShareCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.app.ShareCompat$IntentBuilder found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.app.ShareCompat$IntentReader found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.app.TaskStackBuilder found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.content.IntentCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.content.pm.ActivityInfoCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.database.DatabaseUtilsCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.os.ParcelableCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.os.ParcelableCompatCreatorCallbacks found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.util.DebugUtils found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.util.LogWriter found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.util.TimeUtils found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.view.AccessibilityDelegateCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.view.MenuCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.view.MenuItemCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.view.MotionEventCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.view.VelocityTrackerCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.view.ViewCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.view.ViewConfigurationCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.view.ViewGroupCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.view.accessibility.AccessibilityEventCompat found inmodules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.view.accessibility.AccessibilityManagerCompat found inmodules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.view.accessibility.AccessibilityManagerCompat$AccessibilityStateChangeListenerCompatfound in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.view.accessibility.AccessibilityNodeInfoCompat found inmodules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.view.accessibility.AccessibilityRecordCompat found inmodules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.core.widget.EdgeEffectCompat found in modules core-1.3.2-runtime (androidx.core:core:1.3.2) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.cursoradapter.widget.CursorAdapter found in modules cursoradapter-1.0.0-runtime(androidx.cursoradapter:cursoradapter:1.0.0) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.cursoradapter.widget.CursorAdapter$ChangeObserver found inmodules cursoradapter-1.0.0-runtime(androidx.cursoradapter:cursoradapter:1.0.0) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.cursoradapter.widget.CursorAdapter$MyDataSetObserver found inmodules cursoradapter-1.0.0-runtime(androidx.cursoradapter:cursoradapter:1.0.0) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.cursoradapter.widget.CursorFilter found in modules cursoradapter-1.0.0-runtime(androidx.cursoradapter:cursoradapter:1.0.0) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.cursoradapter.widget.CursorFilter$CursorFilterClient found inmodules cursoradapter-1.0.0-runtime(androidx.cursoradapter:cursoradapter:1.0.0) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.cursoradapter.widget.ResourceCursorAdapter found in modulescursoradapter-1.0.0-runtime(androidx.cursoradapter:cursoradapter:1.0.0) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.cursoradapter.widget.SimpleCursorAdapter found in modules cursoradapter-1.0.0-runtime(androidx.cursoradapter:cursoradapter:1.0.0) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.cursoradapter.widget.SimpleCursorAdapter$CursorToStringConverterfound in modules cursoradapter-1.0.0-runtime(androidx.cursoradapter:cursoradapter:1.0.0) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.cursoradapter.widget.SimpleCursorAdapter$ViewBinder found inmodules cursoradapter-1.0.0-runtime(androidx.cursoradapter:cursoradapter:1.0.0) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.BackStackRecord found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.BackStackState found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.BackStackState$1 found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.DialogFragment found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.Fragment found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.Fragment$InstantiationException found in modulesfragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.Fragment$SavedState found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5)and jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.Fragment$SavedState$1 found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5)and jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.FragmentActivity found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.FragmentManager found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.FragmentManager$BackStackEntry found in modulesfragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.FragmentManager$OnBackStackChangedListener foundin modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5)and jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.FragmentManagerImpl found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5)and jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.FragmentManagerState found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5)and jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.FragmentManagerState$1 found in modules fragment-1.2.5-runtime(androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.FragmentPagerAdapter found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5)and jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.FragmentState found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.FragmentState$1 found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.FragmentStatePagerAdapter found in modules fragment-1.2.5-runtime(androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.FragmentTransaction found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5)and jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.ListFragment found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.ListFragment$1 found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.ListFragment$2 found in modules fragment-1.2.5-runtime (androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.fragment.app.SuperNotCalledException found in modules fragment-1.2.5-runtime(androidx.fragment:fragment:1.2.5) andjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1)Duplicate class androidx.loader.app.LoaderManager found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.app.LoaderManager$LoaderCallbacks found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.app.LoaderManagerImpl found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.app.LoaderManagerImpl$LoaderInfo found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.AsyncTaskLoader found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.AsyncTaskLoader$LoadTask found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.CursorLoader found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.Loader found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.Loader$ForceLoadContentObserver found inmodules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.Loader$OnLoadCompleteListener found in modulesjetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.ModernAsyncTask found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.ModernAsyncTask$1 found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.ModernAsyncTask$2 found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.ModernAsyncTask$3 found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.ModernAsyncTask$4 found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.ModernAsyncTask$AsyncTaskResult found inmodules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.ModernAsyncTask$InternalHandler found inmodules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.ModernAsyncTask$Status found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.loader.content.ModernAsyncTask$WorkerRunnable found inmodules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andloader-1.0.0-runtime (androidx.loader:loader:1.0.0)Duplicate class androidx.localbroadcastmanager.content.LocalBroadcastManager found inmodules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andlocalbroadcastmanager-1.0.0-runtime(androidx.localbroadcastmanager:localbroadcastmanager:1.0.0)Duplicate class androidx.localbroadcastmanager.content.LocalBroadcastManager$1 foundin modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andlocalbroadcastmanager-1.0.0-runtime(androidx.localbroadcastmanager:localbroadcastmanager:1.0.0)Duplicate class androidx.localbroadcastmanager.content.LocalBroadcastManager$BroadcastRecordfound in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andlocalbroadcastmanager-1.0.0-runtime(androidx.localbroadcastmanager:localbroadcastmanager:1.0.0)Duplicate class androidx.localbroadcastmanager.content.LocalBroadcastManager$ReceiverRecordfound in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andlocalbroadcastmanager-1.0.0-runtime(androidx.localbroadcastmanager:localbroadcastmanager:1.0.0)Duplicate class androidx.viewpager.widget.PagerAdapter found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)Duplicate class androidx.viewpager.widget.PagerTitleStrip found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)Duplicate class androidx.viewpager.widget.PagerTitleStrip$PageListener found inmodules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)Duplicate class androidx.viewpager.widget.ViewPager found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)Duplicate class androidx.viewpager.widget.ViewPager$1 found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)Duplicate class androidx.viewpager.widget.ViewPager$2 found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)Duplicate class androidx.viewpager.widget.ViewPager$ItemInfo found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)Duplicate class androidx.viewpager.widget.ViewPager$LayoutParams found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)Duplicate class androidx.viewpager.widget.ViewPager$OnAdapterChangeListener found inmodules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)Duplicate class androidx.viewpager.widget.ViewPager$OnPageChangeListener found inmodules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)Duplicate class androidx.viewpager.widget.ViewPager$PagerObserver found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)Duplicate class androidx.viewpager.widget.ViewPager$SavedState found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)Duplicate class androidx.viewpager.widget.ViewPager$SavedState$1 found in modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)Duplicate class androidx.viewpager.widget.ViewPager$SimpleOnPageChangeListener foundin modules jetified-ViewPagerIndicator-2.4.1-runtime(com.github.JakeWharton:ViewPagerIndicator:2.4.1) andviewpager-1.0.0-runtime (androidx.viewpager:viewpager:1.0.0)

版本降级是唯一的解决方案吗?

谢谢。

最佳答案

通常,每当我尝试迁移到较新版本时,尤其是在您的情况下,迁移到 androidx 时,我都会遇到此重复错误。 .

我建议您清理和重建,并从您的 ./gradle/build 文件夹中删除它们,以避免这些导入/依赖项重复问题。我之前提到过 this修复为好,一切都再次运行。

关于java - 如何解决执行 com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable 时发生故障,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69738328/

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