将项目从Eclipse Kepler迁移到Android Studio后的依赖项错误

将项目从Eclipse Kepler迁移到Android Studio后的依赖项错误,android,android-studio,dependencies,migration,Android,Android Studio,Dependencies,Migration,我正在尝试将一个旧项目从EclipseKepler迁移到Android Studio。 在优化了一些文件并修复了几个错误后,我遇到了以下问题: Duplicate class androidx.collection.LongSparseArray found in modules collection-1.1.0.jar (androidx.collection:collection:1.1.0) and jetified-android-support-v13.jar (android-sup

我正在尝试将一个旧项目从EclipseKepler迁移到Android Studio。 在优化了一些文件并修复了几个错误后,我遇到了以下问题:

Duplicate class androidx.collection.LongSparseArray found in modules collection-1.1.0.jar (androidx.collection:collection:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.collection.LruCache found in modules collection-1.1.0.jar (androidx.collection:collection:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.collection.SparseArrayCompat found in modules collection-1.1.0.jar (androidx.collection:collection:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.accessibilityservice.AccessibilityServiceInfoCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.app.ActivityCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.app.NavUtils found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.app.NotificationCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.app.NotificationCompat$Builder found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.app.ServiceCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.app.ShareCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.app.ShareCompat$IntentBuilder found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.app.ShareCompat$IntentReader found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.app.TaskStackBuilder found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.content.ContextCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.content.IntentCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.content.pm.ActivityInfoCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.database.DatabaseUtilsCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.net.ConnectivityManagerCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.net.TrafficStatsCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.os.ParcelableCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.os.ParcelableCompatCreatorCallbacks found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.util.DebugUtils found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.util.LogWriter found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.util.TimeUtils found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.AccessibilityDelegateCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.MenuCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.MenuItemCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.MotionEventCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.VelocityTrackerCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.ViewCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.ViewConfigurationCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.ViewGroupCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.accessibility.AccessibilityEventCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.accessibility.AccessibilityManagerCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.accessibility.AccessibilityManagerCompat$AccessibilityStateChangeListenerCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.accessibility.AccessibilityNodeInfoCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.accessibility.AccessibilityNodeProviderCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.view.accessibility.AccessibilityRecordCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.widget.EdgeEffectCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.core.widget.ScrollerCompat found in modules core-1.2.0-runtime.jar (androidx.core:core:1.2.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.cursoradapter.widget.CursorAdapter found in modules cursoradapter-1.0.0-runtime.jar (androidx.cursoradapter:cursoradapter:1.0.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.cursoradapter.widget.CursorAdapter$ChangeObserver found in modules cursoradapter-1.0.0-runtime.jar (androidx.cursoradapter:cursoradapter:1.0.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.cursoradapter.widget.CursorAdapter$MyDataSetObserver found in modules cursoradapter-1.0.0-runtime.jar (androidx.cursoradapter:cursoradapter:1.0.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.cursoradapter.widget.CursorFilter found in modules cursoradapter-1.0.0-runtime.jar (androidx.cursoradapter:cursoradapter:1.0.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.cursoradapter.widget.CursorFilter$CursorFilterClient found in modules cursoradapter-1.0.0-runtime.jar (androidx.cursoradapter:cursoradapter:1.0.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.cursoradapter.widget.ResourceCursorAdapter found in modules cursoradapter-1.0.0-runtime.jar (androidx.cursoradapter:cursoradapter:1.0.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.cursoradapter.widget.SimpleCursorAdapter found in modules cursoradapter-1.0.0-runtime.jar (androidx.cursoradapter:cursoradapter:1.0.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.cursoradapter.widget.SimpleCursorAdapter$CursorToStringConverter found in modules cursoradapter-1.0.0-runtime.jar (androidx.cursoradapter:cursoradapter:1.0.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.cursoradapter.widget.SimpleCursorAdapter$ViewBinder found in modules cursoradapter-1.0.0-runtime.jar (androidx.cursoradapter:cursoradapter:1.0.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.BackStackRecord found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.BackStackState found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.BackStackState$1 found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.DialogFragment found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.Fragment found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.Fragment$InstantiationException found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.Fragment$SavedState found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.Fragment$SavedState$1 found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentActivity found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentManager found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentManager$BackStackEntry found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentManager$OnBackStackChangedListener found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentManagerImpl found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentManagerImpl$1 found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentManagerImpl$2 found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentManagerImpl$3 found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentManagerImpl$4 found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentManagerImpl$5 found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentManagerState found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentManagerState$1 found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentPagerAdapter found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentState found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentState$1 found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentStatePagerAdapter found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.FragmentTransaction found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.ListFragment found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.ListFragment$1 found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.ListFragment$2 found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.fragment.app.SuperNotCalledException found in modules fragment-1.1.0-runtime.jar (androidx.fragment:fragment:1.1.0) and jetified-android-support-v13.jar (android-support-v13.jar)
Duplicate class androidx.loader.app.LoaderManager found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.app.LoaderManager$LoaderCallbacks found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.app.LoaderManagerImpl found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.app.LoaderManagerImpl$LoaderInfo found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.AsyncTaskLoader found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.AsyncTaskLoader$LoadTask found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.CursorLoader found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.Loader found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.Loader$ForceLoadContentObserver found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.Loader$OnLoadCompleteListener found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.ModernAsyncTask found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.ModernAsyncTask$1 found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.ModernAsyncTask$2 found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.ModernAsyncTask$3 found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.ModernAsyncTask$4 found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.ModernAsyncTask$AsyncTaskResult found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.ModernAsyncTask$InternalHandler found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.ModernAsyncTask$Status found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.loader.content.ModernAsyncTask$WorkerRunnable found in modules jetified-android-support-v13.jar (android-support-v13.jar) and loader-1.0.0-runtime.jar (androidx.loader:loader:1.0.0)
Duplicate class androidx.localbroadcastmanager.content.LocalBroadcastManager found in modules jetified-android-support-v13.jar (android-support-v13.jar) and localbroadcastmanager-1.0.0-runtime.jar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0)
Duplicate class androidx.localbroadcastmanager.content.LocalBroadcastManager$1 found in modules jetified-android-support-v13.jar (android-support-v13.jar) and localbroadcastmanager-1.0.0-runtime.jar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0)
Duplicate class androidx.localbroadcastmanager.content.LocalBroadcastManager$BroadcastRecord found in modules jetified-android-support-v13.jar (android-support-v13.jar) and localbroadcastmanager-1.0.0-runtime.jar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0)
Duplicate class androidx.localbroadcastmanager.content.LocalBroadcastManager$ReceiverRecord found in modules jetified-android-support-v13.jar (android-support-v13.jar) and localbroadcastmanager-1.0.0-runtime.jar (androidx.localbroadcastmanager:localbroadcastmanager:1.0.0)
Duplicate class androidx.viewpager.widget.PagerAdapter found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.PagerTabStrip found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.PagerTabStrip$1 found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.PagerTabStrip$2 found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.PagerTitleStrip found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.PagerTitleStrip$PageListener found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$1 found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$2 found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$ItemInfo found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$LayoutParams found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$MyAccessibilityDelegate found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$OnAdapterChangeListener found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$OnPageChangeListener found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$PagerObserver found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$SavedState found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$SavedState$1 found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$SimpleOnPageChangeListener found in modules jetified-android-support-v13.jar (android-support-v13.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
我已经在谷歌上搜索了很多,编辑了
build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.3"
    useLibrary 'org.apache.http.legacy'
    compileOptions.encoding = 'windows-1251'

    defaultConfig {
        applicationId "de.company.appname"
        minSdkVersion 16
        targetSdkVersion 29     
        multiDexEnabled true
    }

    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/ASL2.0'
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
 }

dependencies {
    api project(':pDFReader')
    api fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.google.android.gms:play-services-base:17.4.0'
    implementation 'com.google.android.gms:play-services-location:17.0.0'
    implementation 'com.google.android.gms:play-services-maps:17.0.0'
    implementation 'com.google.android.material:material:1.2.1'
    implementation 'com.google.http-client:google-http-client-android:1.36.0'
    implementation 'com.google.api-client:google-api-client-android:1.30.10'
    implementation 'com.google.api-client:google-api-client-gson:1.30.10'
    implementation 'com.google.firebase:firebase-auth:19.3.2'
    implementation 'androidx.multidex:multidex:2.0.1'
}
下面是另一个
build.gradel
文件:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()
        mavenCentral()
        maven {
            url "https://maven.google.com/"
            name 'Google'
        }
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.1'
    }
}

allprojects {
    repositories {
        jcenter()
        mavenCentral()
        maven {
            url "https://maven.google.com/"
            name 'Google'
        }
        google()
    }
}
我还创建了带有以下内容的
gradle.properies
文件:

android.useAndroidX=true
android.enableJetifier=true
org.gradle.jvmargs=-Xmx4608m
我做了所有这些修改,但错误仍然存在,我无法构建项目。 有人知道我如何修复这些deendency解析错误吗? 我很高兴能得到任何帮助


您好,莫里斯F.

您是否需要其他文件或详细信息来帮助我解决此问题?