fcitx5-android / fcitx5-android

Fcitx5 input method framework and engines ported to Android

Home Page:https://fcitx5-android.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build error

jianking123 opened this issue · comments

Excuse me, what is this question,
How to solve
9A17060BF5599D2FFE16ACFE15F653B2
A problem occurred configuring project ':app'.

Illegal char <:> at index 155: D:\allDemo\fcitx5-android\app\property(org.gradle.api.file.Directory, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory, D:\allDemo\fcitx5-android\app\build))\generated\ksp\debug\kotlin

I see your are building on Windows, what's your JDK / Android Studio version?

I've never encountered this issue before, but I suspect it's

kotlin {
sourceSets.configureEach {
kotlin.srcDir("${layout.buildDirectory}/generated/ksp/$name/kotlin/")
}
}

You can try change ${layout.buildDirectory} to ${layout.buildDirectory.asFile.get().name}

@rocka By the way, ${layout.buildDirectory} seems to be deprecated, layout.buildDirectory.dir is now recommended by official. I have no idea if this can be helpful in this case.

Maybe

kotlin.srcDir("${layout.buildDirectory}/generated/ksp/$name/kotlin/")

should be changed to

kotlin.srcDir(layout.buildDirectory.dir("generated/ksp/$name/kotlin"))

My android studio version is 2023.2.1, I am a windows10 system, and now there are some new problems
QQ截图20240414152413
log.txt
I think this may be very simple for you. I am a newbie, so I have many questions. I look forward to your reply.

Please follow the instructions in README.md for how to set up developtment environemnt on Windows.