我最近从我的应用程序中删除了facebook登录,现在我收到了这些错误。我试图清理我的项目,使缓存失效,重新启动,添加multidex,弥补所有依赖项,但错误仍然存在。
Duplicate class androidx.appcompat.content.res.AppCompatResources found in modules appcompat-1.0.0-runtime (androidx.appcompat:appcompat:1.0.0) and appcompat-resources-1.4.1-runtime (androidx.appcompat:appcompat-res
统一版本:团结2020.1.17f
在为Android构建游戏之后,我得到了这些错误
在“播放器设置”中,我检查了“自定义主报表”、“自定义发射器清单”、“自定义启动程序分级模板”和“自定义Gralde属性”模板
我什么都试过了,请帮忙
这个错误发生在我制作Android Resolver时。
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launche
这是一个错误:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class androidx.work.ArrayCreatingInputMerger found in modules androidx.work.work-runtime-2.1.0-runtime.jar (:androidx.work.work-runtime-
Android Studio认为我在使用AndroidX依赖,但我不知道在哪里。这是我收到的错误消息: This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry.
The following AndroidX dependencies are detected: androidx.fragment:fragme
我想使用firebase远程配置库(com.google.firebase:firebase-config:19.1.4)。当我将它的依赖项添加到app gradle中时,我会得到以下错误。
ERROR: This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry.
The following AndroidX
当我将gradle依赖项添加到google标签管理器时,我得到了错误。
debugUnitTestCompileClasspath - Resolved configuration for compilation for variant: debugUnitTest
Dependency resolved to an incompatible version: Dependency(fromArtifactVersion=ArtifactVersion(groupId=com.google.firebase, artifactId=firebase-mess
aging, version=18
我做不到。一个错误:TextField,Text,IconButton。@Composable invocations can only happen from the context of a @Composable function
import androidx.compose.foundation.layout.*
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import an
我在代码实验室提供的样本中有一个编译时错误。
这是ViewModel
class VM : ViewModel() {
val isVisible = MutableStateFlow(true).asStateFlow()
}
这就是我想写的:
@Composable
fun Whatever(vm: VM = viewModel()) {
val isVisible by vm.isVisible.collectAsState(true)
// Use is visible here
}
但是,它会产生以下错误:
键入'State<TypeVari
嗨,我正在尝试异步更新AdapterList可组合项。我把图像作为列表项目之一。图像数据使用协同线从服务器下载,并使用状态更新值。当我抛出列表项时,得到了以下错误
java.lang.IllegalStateException: Asking for measurement result of unmeasured layout modifier
at androidx.ui.core.LayoutNodeWrapper.getMeasureResult(LayoutNodeWrapper.kt:58)
at androidx.ui.core.Layou
我正在将Jetpack Compose集成到我的应用程序的legacy模块中,并在构建时运行到一个问题IncompatibleComposeRuntimeVersionException中。我希望能帮你解决这个问题。 androidx.compose.compiler.plugins.kotlin.IncompatibleComposeRuntimeVersionException: You are using an outdated version of Compose Runtime that is not compatible with the version of the Compo
在将Android更新到3.3金丝雀10 (从上一个金丝雀中)之后,我开始处理Gradle同步问题:
ERROR: Unable to resolve dependency for ':feature@debugFeature/compileClasspath': Could not resolve androidx.annotation:annotation:1.0.0-rc01.
Show Details
Affected Modules: feature
ERROR: Unable to resolve dependency for ':feature@deb
我正在试用Jetpack撰写的一个示例,并在下面得到了这个错误,自从这段代码工作以来,我没有做任何更改,我唯一更改的是从dev15到alpha-01的版本,然后发生了这种情况。
java.lang.IllegalArgumentException: maxHeight(473) must be >= minHeight(747)
at androidx.compose.ui.unit.Constraints.copy-msEJaDk(Constraints.kt:158)
at androidx.compose.ui.unit.Constraints.c
在LazyVerticalGrid中放置来自内部存储的所有图像时,我面临着奇怪的异常。到目前为止,它运转良好,没有任何问题,但最近这个问题似乎没有任何明显的暗示。
这是我的ui和实用程序代码
fun getAllImagesFromStorage(context: Context): List<ImageMetaData> {
val imageList = mutableListOf<ImageMetaData>()
val collection = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES
我正在尝试使用RGB值创建一个颜色,但是我得到了以下错误。我无法找到解决办法。
Color(148f, 148f, 148f, 1f)
以下是我遇到的错误:
java.lang.IllegalArgumentException: red = 148.0, green = 148.0, blue = 148.0, alpha = 1.0 outside the range for sRGB IEC61966-2.1 (id=0, model=Rgb)
at androidx.compose.ui.graphics.ColorKt.Color(Color.kt:405)
面对一次坠机在喷气背包组成,谁能帮我这个。
Fatal Exception: java.lang.IllegalArgumentException: offset(23) is out of bounds [0, 0]
at androidx.compose.ui.text.MultiParagraph.requireIndexInRangeInclusiveEnd(MultiParagraph.kt:593)
at androidx.compose.ui.text.MultiParagraph.getBidiRunDirection(MultiParagraph.kt:406)
在将ExpoKit项目从SDK32更新到SDK33之后,我在Android项目中得到了一堆错误。
我遵循官方指南更新了
下面是我得到的错误:
ERROR: Manifest merger failed : Attribute data@scheme at manifestMerger6401876400338623003.xml requires a placeholder substitution but no value for <appAuthRedirectScheme> is provided.
Could not determine the dependencie
突然,我在生成APK时遇到了这个构建问题。我不知道它是什么意思,也不知道如何解决它。我从上一次构建时所做的更改很小,我甚至恢复到了以前的版本,但没有运气。请协助: FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageStaging'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacad
我将我的应用程序项目拆分为其他模块,在实现DI并将依赖项拆分到各个模块之后,我得到了以下异常:
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/arch/core/util/Cancellable;
at androidx.activity.ComponentActivity.<init>(ComponentActivity.java:69)
at androidx.fragment.app.FragmentActivity.<init>(FragmentAc
在尝试构建android应用程序时,我遇到了以下问题。我遇到过一些关于强制或使用手动依赖解决策略的android帖子。这似乎不能解决这个问题。
也有人问过一个类似的问题:。
还有一个问题是:。
* What went wrong:
Execution failed for task ':app:lintVitalSunmiRelease'.
> Could not resolve all artifacts for configuration ':data:debugAndroidTestRuntimeClasspath'.
> Could n
我的应用程序在重启使用多个后台堆栈的killed activity后崩溃,如底部导航选项卡的samples所示。它只有在使用multistack时才会崩溃。 堆栈跟踪: Caused by: java.lang.IllegalArgumentException
at androidx.lifecycle.LifecycleRegistry.downEvent(LifecycleRegistry.java:263)
at androidx.lifecycle.LifecycleRegistry.backwardPass(LifecycleRegistry.java:314)
在Android中构建项目时,在数据绑定模块-运行时-7.0.4-运行时中观察到的android class.data binding.Database的复制,下面出现的错误是该项目的不完整错误代码和gradle文件:
Duplicate class androidx.databinding.BaseObservableField found in modules databinding-runtime-7.0.4-runtime (androidx.databinding:databinding-runtime:7.0.4) and jetified-library-3.2.0-alpha1
我有一个多模块应用程序,我最近开始实现Jetpack撰写。我定义了一些可由不同模块共享的可组合性。我把这些放在另一个图书馆模块中,并在相关地方导入。示例可组合:
// Nothing special here, any composable function fails the same way
@Composable
fun AppTheme(content: @Composable () -> Unit) {
val appColors = lightColors(
primary = Blue
)
MaterialTheme(colors =