Debug和release应用的构建变体,可以成功构建和编译。
在release构建版本中,由于androidx.fragment:fragment-testing
库,应用无法编译。
build.gradle(:app)
debugImplementation "androidx.fragment:fragment-testing:1.2.2"
由于未解析对androidx
库的引用,构建失败。
即import androidx.activity.viewModels
,import androidx.lifecycle.AbstractSavedStateViewModelFactory
,import androidx.lifecycle.SavedStateHandle
,import androidx.lifecycle.lifecycleScope
,import androidx.fragment.app.activityViewModels
等
期望构建并编译应用程序的调试和发布构建变体。在android版本中,由于androidx.fragment:fragment-testing库,该应用无法编译。 ...
在进行以下调整时,应用程序将按release