我上周更新了Kotlin 1.5,在昨天看到Google打算让Jetpack成为设计UI的首选方案之后,我想做一些测试。
问题是,将我的项目更新为Kotlin 1.5,在尝试构建该项目时,我会得到以下错误:
This version (1.0.0-beta07) of the Compose Compiler requires Kotlin version 1.4.32 but you appear to be using Kotlin version 1.5.0 which is not known to be compatible. Please fix your configurati
在从beta07更新到beta08之后构建代码时,执行失败并返回NullPointerException。 下面是完整的堆栈跟踪: e: java.lang.NullPointerException
at org.jetbrains.kotlin.ir.util.IrUtilsKt.getTypeSubstitutionMap(IrUtils.kt:548)
at org.jetbrains.kotlin.ir.util.IrUtilsKt.getTypeSubstitutionMap(IrUtils.kt:556)
at androidx.compose.compiler.plugins.
我已经将我的项目更新为Kotlin 1.6.10,编写1.1.0-rc01,并将编译器编写为1.1.0-rc02,因为我需要一些新的撰写特性。
在编译过程中,我现在有了这个错误,有任何解决方案吗?它与Kotlin 1.5.31一起工作,编写/编写编译器1.0.5
java.lang.IllegalStateException: Symbol for kotlin.collections/mutableMapOf|-4813910536206556932[0] is unbound
at org.jetbrains.kotlin.ir.symbols.impl.IrBindablePublicS
我尝试在其他地方寻找这个问题的解决方案,包括一些关于堆栈溢出的问题,但他们没有提供我的问题的解决方案。所以请不要将我的问题标记为重复。 我正在尝试使用Jetpack Compose和Android Studio Canary。我尝试根据文档设置项目,但在运行项目时出现以下错误: Execution failed for task ':app:prepareDebugKotlinCompileTask'.
> Could not resolve all files for configuration ':app:kotlin-extension'.
我希望在Dynamic Feature Module中的现有项目中实现jetpack。我跟踪了来自的,但得到了以下错误:
Execution failed for task ':features:profile:workpreferences:prepareStagingDebugKotlinCompileTask'.
> Could not resolve all files for configuration ':features:profile:workpreferences:kotlin-extension'.
> Could not
我刚刚升级了一个功能齐全的应用程序,从Compos1.0.5升级到1.1.0。它构建时没有错误,也没有警告。然而,它不再发射了。
Android中的Problems选项卡表明104 problems与Choreographer.java ~/Android/Sdk/sources/android-31/android/view相关
build.gradle (:app)
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
我创建了一个基于2021.2.1修补程序1的向导空组合活动的项目,它可以编译,而且运行良好。
在将compose_version从compose_version = '1.1.0-beta01'升级到1.2.1后,我会得到以下运行错误。
Could not resolve all files for configuration ':app:kotlin-extension'.
> Could not find androidx.compose.compiler:compiler:1.2.1.
Searched in the followin
最近我一直在胡思乱想想让喷气背包写作.我遵循了所有的示例代码,下载的金丝雀和所有,但1.4.0插件对我不起作用,我会遇到编译问题
这些是我的分级文件
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.4.0"
ext.compose_version = '1.0.0-alpha01'
repositories {
在构建我的项目时,我遇到了这样的错误:
e: This version (1.1.1) of the Compose Compiler requires Kotlin version 1.6.10 but you appear to be using Kotlin version 1.6.20 which is not known to be compatible. Please fix your configuration (or suppressKotlinVersionCompatibilityCheck but don't say I didn't warn you!
哇!这是我在堆栈溢出中的第一个问题。我的英语还不太好。我想使用LazyVerticalGrid。因此,我尝试将compose_version更改为'1.1.1‘。
e: This version (1.1.1) of the Compose Compiler requires Kotlin version 1.6.10 but you appear to be using Kotlin version 1.5.31 which is not known to be compatible. Please fix your configuration (or `suppressKotli
我正在开发一个由第三方客户连接的图书馆。Jetpack撰写需要严格遵守Kotlin和Compose版本,否则将是这样的:
This version (1.0.5) of the Compose Compiler requires Kotlin version 1.5.31 but you appear to be using Kotlin version 1.6.21 which is not known to be compatible. Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck`
我想测试最新版本的JetPackComposit1.3.0-alpha 02 ()。因此,我创建了一个新项目并将版本更新为1.3.0-alpha02。
但是当运行它时,我会得到这个错误,好像找不到什么东西一样:
Execution failed for task ':app:compileDebugKotlin'.
> Could not resolve all files for configuration ':app:kotlin-extension'.
> Could not find androidx.compose.compiler:
我正在将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
我对这个问题感到非常困惑。我的gradle文件中有以下几行: implementation "androidx.compose.runtime:runtime:1.0.0-alpha04"
implementation "androidx.compose.compiler:compiler:1.0.0-alpha04"
implementation "androidx.compose.runtime:runtime-rxjava2:1.0.0-alpha04" 但是,当我构建时,我得到以下错误: Could not determine the
我升级到Jetpack Compose 1.0.0-alpha12,并开始遇到问题。 首先, 我使用的方法显示为弃用。 从 Alpha 12发行说明 ,我注意到上面写着: ComponentActivity.setContent已经转移到了activity中的androidx.activity.compose.setContent。activity:activity-compose模块。( Icf416 ) 所以我把我的 并将其转换为 ,这删除了弃用。 但是,我随后收到一个错误,内容是: w: Flag is not supported by this version of the com
当我构建项目时,我得到了这个错误
java.lang.IllegalStateException: function = <anonymous>, count = 4, index = 4
at androidx.compose.compiler.plugins.kotlin.lower.ComposerLambdaMemoization.wrapFunctionExpression(ComposerLambdaMemoization.kt:697)
at androidx.compose.compiler.plugins.kotlin.lower.ComposerLambdaMe
问题描述
我正在尝试使用jetpack compose 1.1.0-rc02的最新版本,但一些依赖项正在返回一个错误:
Failed to resolve: androidx.compose.material:material:1.1.0-rc02
Failed to resolve: androidx.compose.ui:ui:1.1.0-rc02
Failed to resolve: androidx.compose.ui:ui-tooling:1.1.0-rc02
Failed to resolve: androidx.compose.ui:ui-tooling-preview:1.1
在升级到编写beta-01之后,我无法让我的项目编译。在我的项目中搜索"alpha-13“时,我也找不到一些东西,这真的很奇怪。但它适用于阿尔法-12。我运行的是正确的Android Studio (北极福克斯金丝雀8号)
使缓存失效重新启动、清理项目和清除全局缓存无效。
androidx.compose.compiler.plugins.kotlin.IncompatibleComposeRuntimeVersionException: You are using an outdated version of Compose Runtime that is not compatibl
这太荒谬了,当我有这样的错误时,我会犯这样的错误:id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
更新:全天运转良好。就在我决定加入这个项目的时候,,也就是问题开始出现的时候。不知道为什么,我遵守了网站上的所有说明。
安装了Android:
错误:
> Task :app:compileDebugKotlin FAILED
e: This version (1.1.1) of the Compose Compiler requires Kotlin version 1.
我正试图通过升级到compose compiler 1.3.2来升级到kotlin 1.7.20,但是我一直在错误地说Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
我用的是安卓工作室海豚
如果我用compose compiler to 1.2.0恢复kotl
我试图在多模块项目中实现compose,但我经常收到以下错误: androidx.compose.compiler.plugins.kotlin.IncompatibleComposeRuntimeVersionException: You are using an outdated version of Compose Runtime that is not compatible with the version of the Compose Compiler plugin you have installed. The compose compiler plugin you are us
我使用compose 1.0.1和Kotlin 1.5.20创建了一个全新的android应用程序,并在编译过程中收到以下警告: w: ATTENTION!
This build uses unsafe internal compiler arguments:
-XXLanguage:+NonParenthesizedAnnotationsOnFunctionalTypes
This mode is not recommended for production use,
as no stability/compatibility guarantees are given on
compi
我正在尝试将compose添加到我现有的项目中,并在构建时出现以下异常
e: java.lang.IllegalStateException: Cannot find the Composer class
at androidx.compose.plugins.kotlin.compiler.lower.AbstractComposeLowering.<init>(AbstractComposeLowering.kt:156)
at androidx.compose.plugins.kotlin.compiler.lower.ComposerLambdaMemoiz
想要将导航版本升级到2.4.0-rc 01,但当我这样做时会得到这个错误。
This version (1.0.5) of the Compose Compiler requires Kotlin version 1.5.31 but you appear to be using Kotlin version 1.6.0 which is not known to be compatible.
有人能让这件事成功吗?
编辑:我的build.gradle
项目:
buildscript {
ext {
kotlin_version = '1.5.31'
我使用android studio制作了一个Kotlin多平台移动项目,在导入SQLDelight后遇到以下错误: e: This version (1.0.1) of the Compose Compiler requires Kotlin version 1.5.21 but you appear to be using Kotlin version 1.5.30 which is not known to be compatible. Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck`
当我试图使用jetpack的撰写库时,我坚持遵循jetpack文档中提到的步骤(源代码:)。我无法使用kotlinPlugin,因为我得到了以下异常。
Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method kotlinPlugin() for arguments [androidx.compose:compose-compiler:0.1.0-dev02] on object of type org.gr