Компоненты архитектуры Android (Android Jetpack) ломают мгновенные приложения - PullRequest
0 голосов
/ 14 мая 2018

У меня есть проект Android, который поддерживает мгновенные приложения. Итак, у меня есть эти в base feature

api 'androidx.appcompat:appcompat:1.0.0-alpha1'
api 'androidx.constraintlayout:constraintlayout:1.1.0'
api "androidx.lifecycle:lifecycle-extensions:2.0.0-alpha1"

когда у меня есть эти

installable app

не запускается со следующей ошибкой

Активность по умолчанию не найдена

Когда я удаляю

api "androidx.lifecycle:lifecycle-extensions:2.0.0-alpha1"

The

installable app

не выдает ошибок, но, конечно, здесь отсутствует прямая зависимость, поэтому она не собирается.

Я пробовал каждую версию библиотеки поддержки вместе с каждой версией и модулем новых компонентов архитектуры, я даже пытался использовать

implementation

вместо

api

но ничего не работает.

Похоже, что компоненты архитектуры ломают мгновенные приложения.

Также приведены зависимости.

+--- androidx.appcompat:appcompat:1.0.0-alpha1
|    +--- androidx.annotation:annotation:1.0.0-alpha1
|    +--- androidx.core:core:1.0.0-alpha1
|    |    +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    +--- androidx.collection:collection:1.0.0-alpha1
|    |    |    \--- androidx.annotation:annotation:1.0.0-alpha1
|    |    \--- androidx.lifecycle:lifecycle-runtime:2.0.0-alpha1
|    |         +--- androidx.lifecycle:lifecycle-common:2.0.0-alpha1
|    |         |    \--- androidx.annotation:annotation:1.0.0-alpha1
|    |         +--- androidx.arch.core:core-common:2.0.0-alpha1
|    |         |    \--- androidx.annotation:annotation:1.0.0-alpha1
|    |         \--- androidx.annotation:annotation:1.0.0-alpha1
|    +--- androidx.collection:collection:1.0.0-alpha1 (*)
|    +--- androidx.cursoradapter:cursoradapter:1.0.0-alpha1
|    |    \--- androidx.annotation:annotation:1.0.0-alpha1
|    +--- androidx.legacy:legacy-support-core-utils:1.0.0-alpha1
|    |    +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    +--- androidx.core:core:1.0.0-alpha1 (*)
|    |    +--- androidx.documentfile:documentfile:1.0.0-alpha1
|    |    |    \--- androidx.annotation:annotation:1.0.0-alpha1
|    |    +--- androidx.loader:loader:1.0.0-alpha1
|    |    |    +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    |    +--- androidx.core:core:1.0.0-alpha1 (*)
|    |    |    +--- androidx.lifecycle:lifecycle-livedata-core:2.0.0-alpha1
|    |    |    |    +--- androidx.lifecycle:lifecycle-common:2.0.0-alpha1 (*)
|    |    |    |    +--- androidx.arch.core:core-common:2.0.0-alpha1 (*)
|    |    |    |    \--- androidx.arch.core:core-runtime:2.0.0-alpha1
|    |    |    |         +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    |    |         \--- androidx.arch.core:core-common:2.0.0-alpha1 (*)
|    |    |    \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0-alpha1
|    |    |         \--- androidx.annotation:annotation:1.0.0-alpha1
|    |    +--- androidx.localbroadcastmanager:localbroadcastmanager:1.0.0-alpha1
|    |    |    \--- androidx.annotation:annotation:1.0.0-alpha1
|    |    \--- androidx.print:print:1.0.0-alpha1
|    |         \--- androidx.annotation:annotation:1.0.0-alpha1
|    +--- androidx.fragment:fragment:1.0.0-alpha1
|    |    +--- androidx.core:core:1.0.0-alpha1 (*)
|    |    +--- androidx.legacy:legacy-support-core-ui:1.0.0-alpha1
|    |    |    +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    |    +--- androidx.core:core:1.0.0-alpha1 (*)
|    |    |    +--- androidx.legacy:legacy-support-core-utils:1.0.0-alpha1 (*)
|    |    |    +--- androidx.customview:customview:1.0.0-alpha1
|    |    |    |    +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    |    |    \--- androidx.core:core:1.0.0-alpha1 (*)
|    |    |    +--- androidx.viewpager:viewpager:1.0.0-alpha1
|    |    |    |    +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    |    |    +--- androidx.core:core:1.0.0-alpha1 (*)
|    |    |    |    \--- androidx.customview:customview:1.0.0-alpha1 (*)
|    |    |    +--- androidx.coordinatorlayout:coordinatorlayout:1.0.0-alpha1
|    |    |    |    +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    |    |    +--- androidx.core:core:1.0.0-alpha1 (*)
|    |    |    |    \--- androidx.customview:customview:1.0.0-alpha1 (*)
|    |    |    +--- androidx.drawerlayout:drawerlayout:1.0.0-alpha1
|    |    |    |    +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    |    |    +--- androidx.core:core:1.0.0-alpha1 (*)
|    |    |    |    \--- androidx.customview:customview:1.0.0-alpha1 (*)
|    |    |    +--- androidx.slidingpanelayout:slidingpanelayout:1.0.0-alpha1
|    |    |    |    +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    |    |    +--- androidx.core:core:1.0.0-alpha1 (*)
|    |    |    |    \--- androidx.customview:customview:1.0.0-alpha1 (*)
|    |    |    +--- androidx.interpolator:interpolator:1.0.0-alpha1
|    |    |    |    \--- androidx.annotation:annotation:1.0.0-alpha1
|    |    |    +--- androidx.swiperefreshlayout:swiperefreshlayout:1.0.0-alpha1
|    |    |    |    +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    |    |    +--- androidx.core:core:1.0.0-alpha1 (*)
|    |    |    |    \--- androidx.interpolator:interpolator:1.0.0-alpha1 (*)
|    |    |    +--- androidx.asynclayoutinflater:asynclayoutinflater:1.0.0-alpha1
|    |    |    |    +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    |    |    \--- androidx.core:core:1.0.0-alpha1 (*)
|    |    |    \--- androidx.cursoradapter:cursoradapter:1.0.0-alpha1 (*)
|    |    +--- androidx.legacy:legacy-support-core-utils:1.0.0-alpha1 (*)
|    |    +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    +--- androidx.loader:loader:1.0.0-alpha1 (*)
|    |    \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0-alpha1 (*)
|    +--- androidx.vectordrawable:vectordrawable:1.0.0-alpha1
|    |    +--- androidx.annotation:annotation:1.0.0-alpha1
|    |    \--- androidx.core:core:1.0.0-alpha1 (*)
|    \--- androidx.vectordrawable:vectordrawable-animated:1.0.0-alpha1
|         +--- androidx.vectordrawable:vectordrawable:1.0.0-alpha1 (*)
|         \--- androidx.legacy:legacy-support-core-ui:1.0.0-alpha1 (*)
+--- androidx.constraintlayout:constraintlayout:1.1.0
|    \--- androidx.constraintlayout:constraintlayout-solver:1.1.0
\--- androidx.lifecycle:lifecycle-extensions:2.0.0-alpha1
     +--- androidx.lifecycle:lifecycle-runtime:2.0.0-alpha1 (*)
     +--- androidx.arch.core:core-common:2.0.0-alpha1 (*)
     +--- androidx.arch.core:core-runtime:2.0.0-alpha1 (*)
     +--- androidx.fragment:fragment:1.0.0-alpha1 (*)
     +--- androidx.lifecycle:lifecycle-common:2.0.0-alpha1 (*)
     +--- androidx.lifecycle:lifecycle-livedata:2.0.0-alpha1
     |    +--- androidx.arch.core:core-runtime:2.0.0-alpha1 (*)
     |    +--- androidx.lifecycle:lifecycle-livedata-core:2.0.0-alpha1 (*)
     |    \--- androidx.arch.core:core-common:2.0.0-alpha1 (*)
     +--- androidx.lifecycle:lifecycle-process:2.0.0-alpha1
     |    \--- androidx.lifecycle:lifecycle-runtime:2.0.0-alpha1 (*)
     +--- androidx.lifecycle:lifecycle-service:2.0.0-alpha1
     |    \--- androidx.lifecycle:lifecycle-runtime:2.0.0-alpha1 (*)
     \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0-alpha1 (*)
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...