Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error trying to compile template for android #155

Open
dryluggage opened this issue Dec 5, 2023 · 0 comments
Open

error trying to compile template for android #155

dryluggage opened this issue Dec 5, 2023 · 0 comments

Comments

@dryluggage
Copy link

i get compilation error while trying to compile the template you get with "x new" for android . :

[2/3] Build rust `apptest` [343194ms]
[3/3] Create apk
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :app:stripDebugDebugSymbols
Unable to strip the following libraries, packaging them as they are: libapptest.so.
<=======--<====
> Task :app:compileDebugKotlin
e: /home/coffer/Documente/rust files/apptest/target/x/debug/android/gradle/app/src/main/kotlin/MainActivity.kt: (3, 22): Unresolved reference: TauriActivity

> Task :app:compileDebugKotlin FAILED

> Task :app:compileReleaseKotlin FAILED
e: /home/coffer/Documente/rust files/apptest/target/x/debug/android/gradle/app/src/main/kotlin/MainActivity.kt: (3, 22): Unresolved reference: TauriActivity

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:compileReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 2m 55s
43 actionable tasks: 43 executed
[ERROR] gradle assemble  exited with 1

output of x doctor


--------------------clang/llvm toolchain--------------------
clang                16.0.6              /usr/bin/clang
clang++              16.0.6              /usr/bin/clang++
llvm-ar              unknown             /usr/bin/llvm-ar
llvm-lib             unknown             /usr/bin/llvm-lib
llvm-readobj         16.0.6              /usr/bin/llvm-readobj
lld                  16.0.6              /usr/bin/lld
lld-link             16.0.6              /usr/bin/lld-link
lldb                 16.0.6              /usr/bin/lldb
lldb-server          unknown             /usr/bin/lldb-server

----------------------------rust----------------------------
rustup               1.26.0              /usr/bin/rustup
cargo                1.74.0              /usr/bin/cargo

--------------------------android---------------------------
adb                  1.0.41              /usr/bin/adb
javac                21                  /usr/bin/javac
java                 21                  /usr/bin/java
kotlin               1.9.21-release-633  /usr/bin/kotlin
gradle               8.5                 /usr/bin/gradle

----------------------------ios-----------------------------
idevice_id           1.3.0               /usr/bin/idevice_id
ideviceinfo          1.3.0               /usr/bin/ideviceinfo
ideviceinstaller     not found
ideviceimagemounter  1.3.0               /usr/bin/ideviceimagemounter
idevicedebug         1.3.0               /usr/bin/idevicedebug
idevicedebugserverproxy 1.3.0               /usr/bin/idevicedebugserverproxy

---------------------------linux----------------------------
mksquashfs           4.6.1               /usr/bin/mksquashfs

i dont really know what the error means could it have something todo with the way the android sdk is not readable because i got errors for it before that and fixed it
with "chown -R $(whoami) $ANDROID_HOME"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant