Я пытаюсь добавить androidx.preference:preference:1.1.1
в свой проект, и когда я смотрю зависимости androidx.preference:preference:1.1.1
, я обнаружил следующее:
\--- androidx.preference:preference:1.1.1
+--- androidx.appcompat:appcompat:1.1.0
| +--- androidx.annotation:annotation:1.1.0
| +--- androidx.core:core:1.1.0
| | +--- androidx.annotation:annotation:1.1.0
| | +--- androidx.lifecycle:lifecycle-runtime:2.0.0 -> 2.2.0
| | | +--- androidx.lifecycle:lifecycle-common:2.2.0
| | | | \--- androidx.annotation:annotation:1.1.0
| | | +--- androidx.arch.core:core-common:2.1.0
| | | | \--- androidx.annotation:annotation:1.1.0
| | | \--- androidx.annotation:annotation:1.1.0
| | +--- androidx.versionedparcelable:versionedparcelable:1.1.0
| | | +--- androidx.annotation:annotation:1.1.0
| | | \--- androidx.collection:collection:1.0.0 -> 1.1.0
| | | \--- androidx.annotation:annotation:1.1.0
| | \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| +--- androidx.cursoradapter:cursoradapter:1.0.0
| | \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| +--- androidx.fragment:fragment:1.1.0 -> 1.2.4
| | +--- androidx.annotation:annotation:1.1.0
| | +--- androidx.core:core:1.1.0 (*)
| | +--- androidx.collection:collection:1.1.0 (*)
| | +--- androidx.viewpager:viewpager:1.0.0
| | | +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| | | +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
| | | \--- androidx.customview:customview:1.0.0
| | | +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| | | \--- androidx.core:core:1.0.0 -> 1.1.0 (*)
| | +--- androidx.loader:loader:1.0.0
| | | +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| | | +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
| | | +--- androidx.lifecycle:lifecycle-livedata:2.0.0
| | | | +--- androidx.arch.core:core-runtime:2.0.0 -> 2.1.0
| | | | | +--- androidx.annotation:annotation:1.1.0
| | | | | \--- androidx.arch.core:core-common:[2.1.0] -> 2.1.0 (*)
| | | | +--- androidx.lifecycle:lifecycle-livedata-core:2.0.0 -> 2.2.0
| | | | | +--- androidx.lifecycle:lifecycle-common:2.2.0 (*)
| | | | | +--- androidx.arch.core:core-common:2.1.0 (*)
| | | | | \--- androidx.arch.core:core-runtime:2.1.0 (*)
| | | | \--- androidx.arch.core:core-common:2.0.0 -> 2.1.0 (*)
| | | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 -> 2.2.0
| | | \--- androidx.annotation:annotation:1.1.0
| | +--- androidx.activity:activity:1.1.0
| | | +--- androidx.annotation:annotation:1.1.0
| | | +--- androidx.core:core:1.1.0 (*)
| | | +--- androidx.lifecycle:lifecycle-runtime:2.2.0 (*)
| | | +--- androidx.lifecycle:lifecycle-viewmodel:2.2.0 (*)
| | | +--- androidx.savedstate:savedstate:1.0.0
| | | | +--- androidx.annotation:annotation:1.1.0
| | | | +--- androidx.arch.core:core-common:2.0.1 -> 2.1.0 (*)
| | | | \--- androidx.lifecycle:lifecycle-common:2.0.0 -> 2.2.0 (*)
| | | \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:1.0.0 -> 2.2.0
| | | +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| | | +--- androidx.savedstate:savedstate:1.0.0 (*)
| | | +--- androidx.lifecycle:lifecycle-livedata-core:2.2.0 (*)
| | | \--- androidx.lifecycle:lifecycle-viewmodel:2.2.0 (*)
| | +--- androidx.lifecycle:lifecycle-livedata-core:2.2.0 (*)
| | +--- androidx.lifecycle:lifecycle-viewmodel:2.2.0 (*)
| | \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.2.0 (*)
| +--- androidx.appcompat:appcompat-resources:1.1.0
| | +--- androidx.annotation:annotation:1.1.0
| | +--- androidx.core:core:1.0.1 -> 1.1.0 (*)
| | +--- androidx.vectordrawable:vectordrawable:1.1.0
| | | +--- androidx.annotation:annotation:1.1.0
| | | +--- androidx.core:core:1.1.0 (*)
| | | \--- androidx.collection:collection:1.1.0 (*)
| | +--- androidx.vectordrawable:vectordrawable-animated:1.1.0
| | | +--- androidx.vectordrawable:vectordrawable:1.1.0 (*)
| | | +--- androidx.interpolator:interpolator:1.0.0
| | | | \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| | | \--- androidx.collection:collection:1.1.0 (*)
| | \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| +--- androidx.drawerlayout:drawerlayout:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| | +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
| | \--- androidx.customview:customview:1.0.0 (*)
| \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
+--- androidx.core:core:1.1.0 (*)
+--- androidx.fragment:fragment:1.2.4 (*)
+--- androidx.recyclerview:recyclerview:1.0.0
| +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
| \--- androidx.legacy:legacy-support-core-ui:1.0.0
| +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
| +--- androidx.legacy:legacy-support-core-utils:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| | +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
| | +--- androidx.documentfile:documentfile:1.0.0
| | | \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| | +--- androidx.loader:loader:1.0.0 (*)
| | +--- androidx.localbroadcastmanager:localbroadcastmanager:1.0.0
| | | \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| | \--- androidx.print:print:1.0.0
| | \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| +--- androidx.customview:customview:1.0.0 (*)
| +--- androidx.viewpager:viewpager:1.0.0 (*)
| +--- androidx.coordinatorlayout:coordinatorlayout:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| | +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
| | \--- androidx.customview:customview:1.0.0 (*)
| +--- androidx.drawerlayout:drawerlayout:1.0.0 (*)
| +--- androidx.slidingpanelayout:slidingpanelayout:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| | +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
| | \--- androidx.customview:customview:1.0.0 (*)
| +--- androidx.interpolator:interpolator:1.0.0 (*)
| +--- androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| | +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
| | \--- androidx.interpolator:interpolator:1.0.0 (*)
| +--- androidx.asynclayoutinflater:asynclayoutinflater:1.0.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
| | \--- androidx.core:core:1.0.0 -> 1.1.0 (*)
| \--- androidx.cursoradapter:cursoradapter:1.0.0 (*)
+--- androidx.annotation:annotation:1.1.0
\--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
Так что просто потрясающе добавлять все эти aar / jar вручную :( Как я могу сделать ?
@DaveNottage Я знаю, но включить все эти aar - это огромная работа :( тем более, что многие из них также имеют ресурсы не только jar. Это возможно, но мне понадобится одна неделя, чтобы сделать это :( Вы не сделали инструмент для автоматизации это кстати как я помню?
Я начал автоматизировать такие вещи, но отложил это. Я мощь запускаю его снова - меня интересует, какие классы вы используете из androidx.preference
@DaveNottage это потому, что PreferenceManager устарел в android 29, и теперь мы должны использовать androidx.preference.PreferenceManager вместо этого :(
Ответ очевиден: включите любые jar-файлы, от которых зависит предпочтение androidx.preference:. Тот факт, что их довольно много, не означает, что это проблема. Это также может зависеть от того, что именно вы используете из пакета предпочтений относительно того, какие банки вам нужно добавить. Вам необходимо прояснить свой вопрос, в чем заключается реальная проблема.