发布版本变体因“ androidx.fragment:fragment-testing”库的debugImplementation而失败]]

问题描述 投票:0回答:1

预期

Debug和release应用的构建变体,可以成功构建和编译。

已观察

release构建版本中,由于androidx.fragment:fragment-testing库,应用无法编译。

图书馆实施

build.gradle(:app)

debugImplementation "androidx.fragment:fragment-testing:1.2.2"

错误

由于未解析对androidx库的引用,构建失败。

import androidx.activity.viewModelsimport androidx.lifecycle.AbstractSavedStateViewModelFactoryimport androidx.lifecycle.SavedStateHandleimport androidx.lifecycle.lifecycleScopeimport androidx.fragment.app.activityViewModels

期望构建并编译应用程序的调试和发布构建变体。在android版本中,由于androidx.fragment:fragment-testing库,该应用无法编译。 ...

android gradle kotlin android-testing androidx
1个回答
0
投票

在进行以下调整时,应用程序将按release

© www.soinside.com 2019 - 2024. All rights reserved.