在尝试调试应用程序时出现此错误
还更新了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"
}
任务":app:checkDebugDuplicateClasses"的执行失败。
执行com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable时出错在模块collection-1.1.0(androidx.collection:collection:1.1.0)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)重复类androidx.core.accessibilityservice.AccessibiliityServiceInfoCompat在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2运行时(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在中找到重复的类androidx.core.view.accessibility.accessibility EventCompat模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在中找到重复的类androidx.core.view.accessibility.accessibility Manager Compat模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)重复类androidx.core.view.AccessibilityManagerCompat$AccessibilityStateChangeListenerCompt在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在中找到重复的类androidx.core.view.accessibility.accessibility NodeInfoCompat模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在中找到重复的类androidx.core.view.accessibility.accessibility RecordCompat模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块core-1.3.2-runtime(androidx.core:core:1.3.2)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块cursoradapter-1.0.0-运行时中找到重复的类androidx.cursoradaptor.widget.cursoradapter(androidx.cursoradapter:cursoradaptor:1.0.0)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在中找到重复的类androidx.cursoradapter.widget.cursoradapter$ChangeObserver模块游标适配器-1.00-运行时(androidx.cursoradapter:cursoradaptor:1.0.0)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在中找到重复的类androidx.cursoradapter.widget.cursoradapter$MyDataSetObserver模块游标适配器-1.00-运行时(androidx.cursoradapter:cursoradaptor:1.0.0)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块cursoradapter-1.0.0-runtime中发现重复的类androidx.cursoradaptor.widget.CursorFilter(androidx.cursoradapter:cursoradaptor:1.0.0)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在中找到重复的类androidx.cursoradapter.widget.CursorFilter$CursorFilterClient模块游标适配器-1.00-运行时(androidx.cursoradapter:cursoradaptor:1.0.0)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块中找到重复的类androidx.cursoradapter.widget.ResourceCursorAdapter游标适配器-1.00-运行时(androidx.cursoradapter:cursoradaptor:1.0.0)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块cursoradapter-1.0.0-运行时中发现重复的类androidx.cursoradaptor.widget.SimpleCursorAdapter(androidx.cursoradapter:cursoradaptor:1.0.0)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)类androidx.cursoradapter.widget.SimpleCursorAdapter$CursorToStringConverter重复在模块cursoradapter-1.0.0-运行时中找到(androidx.cursoradapter:cursoradaptor:1.0.0)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在中找到重复的类androidx.cursoradapter.widget.SimpleCursorAdapter$ViewBinder模块游标适配器-1.00-运行时(androidx.cursoradapter:cursoradaptor:1.0.0)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.BackStackRecord(androidx.fragment:frage:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.BackStackState(androidx.fragment:frage:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时(androidx.fragment:fragment:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.DialogFragment(androidx.fragment:frage:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.fragment(androidx.fragment:frage:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块中发现重复的类androidx.fragment.app.fragment$InstantiationExceptionfragment-1.2.5运行时(androidx.fragment:frage:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.fragment$SavedState(androidx.fragment:fragment:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.fragment$SavedState$1(androidx.fragment:fragment:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时(androidx.fragment:fragment:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时(androidx.fragment:fragment:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块中发现重复的类androidx.fragment.app.FragmentManager$BackStackEntryfragment-1.2.5运行时(androidx.fragment:frage:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)找到重复的类androidx.fragment.app.FragmentManager$OnBackStackChangedListener模块中的fragment-1.2.5运行时(androidx.fragment:frage:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.FragmentManagerImpl(androidx.fragment:fragment:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.FragmentManagerState(androidx.fragment:fragment:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.FragmentManagerState$1(androidx.片段:片段:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.FragmentPagerAdapter(androidx.fragment:fragment:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时(androidx.fragment:fragment:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时(androidx.fragment:sfragment:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.FragmentStatePagerAdapter(androidx.片段:片段:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.FragmentTransaction(androidx.fragment:frage:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.ListFragment(androidx.fragment:frage:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时(androidx.fragment:fragment:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时(androidx.fragment:fragment:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块fragment-1.2.5运行时中发现重复的类androidx.fragment.app.SuperNotCalledException(androidx.片段:片段:1.2.5)和jetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.app.LoaderManager(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.app.LoaderManager$LoaderCallbacks(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.app.LoaderManagerImpl(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.app.LoaderManagerImpl$LoaderInfo(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.content.AsyncTaskLoader(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.content.AsyncTaskLoader$LoadTask(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.content.CursorLoader(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.content.loader(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在中找到重复的类androidx.loader.content.loader$ForceLoadContentObserver模块喷射-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块中找到重复的类androidx.loader.content.loader$OnLoadCompleteListenerjetified-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.content.ModerAsyncTask(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.content.ModernAsyncTask$1(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.content.ModernAsyncTask$2(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.content.ModernAsyncTask$3(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.content.ModernAsyncTask$4(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在中找到重复的类androidx.loader.content.ModernAsyncTask$AsyncTaskResult模块喷射-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在中找到重复的类androidx.loader.content.ModernAsyncTask$InternalHandler模块喷射-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.loader.content.ModernAsyncTask$Status(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在中找到重复的类androidx.loader.content.ModernAsyncTask$WorkerRunable模块喷射-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和loader-1.0.0-运行时(androidx.loader:loader:1.0.0)在中找到重复的类androidx.localbroadcastmanager.content.localbroadcastmanager模块喷射-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和localbroadcastmanager-1.0.0-运行时(androidx.localbroadcastmanager:localbroadcast manager:1.0.0)找到重复的类androidx.localbroadcastmanager.content.localbroadcastmanager$1在模块中喷射-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和localbroadcastmanager-1.0.0-运行时(androidx.localbroadcastmanager:localbroadcast manager:1.0.0)类androidx.localbroadcastmanager.content.localbroadcastmanager$BroadcastRecord重复在模块jetified-ViewPagerIndicator-2.4.1-运行时间中找到(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和localbroadcastmanager-1.0.0-运行时(androidx.localbroadcastmanager:localbroadcast manager:1.0.0)重复的类androidx.localbroadcastmanager.content.localbroadcastmanager$ReceiverRecord在模块jetified-ViewPagerIndicator-2.4.1-运行时间中找到(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和localbroadcastmanager-1.0.0-运行时(androidx.localbroadcastmanager:localbroadcast manager:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.viewpager.widget.PagerAdapter(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.viewpager.widget.PagerTitleStrip(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)在中找到重复的类androidx.viewpager.widget.PagerTitleStrip$PageListener模块喷射-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.viewpager.widget.viewpager(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.viewpager.widget.viewpager$1(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.viewpager.widget.viewpager$2(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.viewpager.widget.viewpager$ItemInfo(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.viewpager.widget.viewpager$LayoutParams(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)在中找到重复的类androidx.viewpager.widget.viewpager$OnAdapterChangeListener模块喷射-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)在中找到重复的类androidx.viewpager.widget.viewpager$OnPageChangeListener模块喷射-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.viewpager.widget.viewpager$PagerObserver(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.viewpager.widget.viewpager$SavedState(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)在模块jetified-ViewPagerIndicator-2.4.1-运行时间中发现重复的类androidx.viewpager.widget.viewpager$SavedState$1(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)找到重复的类androidx.viewpager.widget.viewpager$SimpleOnPageChangeListener在模块中喷射-ViewPagerIndicator-2.4.1运行时间(com.github.JakeWharton:ViewPagerIndicator:2.4.1)和viewpager-1.0.0运行时(androidx.viewpager:viewpager:1.0.0)
版本降级是唯一的减速吗?
谢谢。
通常,每当我试图迁移到新版本时,我都会遇到这种重复的错误,尤其是在您的情况下,迁移到androidx。
我建议您从./gradle
和/build
文件夹中清理、重建和删除这些文件,以避免这些导入/依赖项重复问题。我之前也提到过这个修复程序,一切都在重新运行。
我通过在gradle.properties文件中添加以下行来解决这个问题。
org.gradle.jvmargs=-Xmx4608m
对我来说,这个错误是由几个因素共同造成的。我在应用程序渐变中更改了:
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
然后将build.gradle中Kotlin的版本更改为:
id 'org.jetbrains.kotlin.android' version '1.8.10' apply false
最后,如果您使用compose到基于Kotlin版本的相应版本,请不要忘记compose选项,在这种情况下:
composeOptions {
kotlinCompilerExtensionVersion '1.4.3'
}
这为我解决了这个错误。
使缓存无效并重新启动将解决问题。在此处输入图像描述