You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just created a tauri project to play with it. I wanted to make an android application. I had no issues in developing the application the problem arises when it comes to building the apk. The issue here is this error arises at the end of the apk build process. Please help
Execution failed for task ':app:minifyUniversalReleaseWithR8'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
> Compilation failed to complete, position: offset: 199, line: 7, column: 13, origin: /home/redloaded/Work/hello-tauri/src-tauri/gen/android/app/src/main/java/in/amirth24/tauriapp/generated/proguard-wry.pro
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 4s
125 actionable tasks: 7 executed, 118 up-to-date
Failed to assemble APK: command ["/home/redloaded/Work/hello-tauri/src-tauri/gen/android/gradlew", "--project-dir", "/home/redloaded/Work/hello-tauri/src-tauri/gen/android"] exited with code 1: command ["/home/redloaded/Work/hello-tauri/src-tauri/gen/android/gradlew", "--project-dir", "/home/redloaded/Work/hello-tauri/src-tauri/gen/android"] exited with code 1
Error [tauri_cli_node] Failed to assemble APK: command ["/home/redloaded/Work/hello-tauri/src-tauri/gen/android/gradlew", "--project-dir", "/home/redloaded/Work/hello-tauri/src-tauri/gen/android"] exited with code 1: command ["/home/redloaded/Work/hello-tauri/src-tauri/gen/android/gradlew", "--project-dir", "/home/redloaded/Work/hello-tauri/src-tauri/gen/android"] exited with code 1
ELIFECYCLE Command failed with exit code 1.
With verbose flag enabled, I was able to spot this
Caching disabled for task ':app:minifyUniversalReleaseWithR8' because:
Build cache is disabled
Task ':app:minifyUniversalReleaseWithR8' is not up-to-date because:
Task has failed previously.
R8 is a new Android code shrinker. If you experience any issues, please file a bug at
https://issuetracker.google.com, using 'Shrinker (R8)' as component name.
Current version is: 8.5.27 (build 9a5bef1f7f3530a8944fd7505683ce6b7c3a7a1f from go/r8bot (luci-r8-custom-ci-archive-0-5spf)).
file or directory '/home/redloaded/Work/hello-tauri/src-tauri/gen/android/app/build/intermediates/generated_proguard_file/universalRelease/mergeUniversalReleaseGeneratedProguardFiles/proguard.txt', not found
ERROR: /home/redloaded/Work/hello-tauri/src-tauri/gen/android/app/proguard-tauri.pro:3:13: R8: Class name expected at /home/redloaded/Work/hello-tauri/src-tauri/gen/android/app/proguard-tauri.pro:3:13
-keep class `in`.amirth24.tauriapp.TauriActivity {
^
ERROR: /home/redloaded/Work/hello-tauri/src-tauri/gen/android/app/src/main/java/in/amirth24/tauriapp/generated/proguard-wry.pro:7:13: R8: Class name expected at /home/redloaded/Work/hello-tauri/src-tauri/gen/android/app/src/main/java/in/amirth24/tauriapp/generated/proguard-wry.pro:7:13
-keep class `in`.amirth24.tauriapp.* {
^
Could not execute [report metric STATISTICS_COLLECT_METRICS_OVERHEAD]
Could not execute [report metric STATISTICS_COLLECT_METRICS_OVERHEAD]
Reproduction
Create a new tauri project with any ways I guess, I tried only with cargo and once again with pnpm.
Describe the bug
I just created a tauri project to play with it. I wanted to make an android application. I had no issues in developing the application the problem arises when it comes to building the apk. The issue here is this error arises at the end of the apk build process. Please help
With verbose flag enabled, I was able to spot this
Reproduction
Create a new tauri project with any ways I guess, I tried only with cargo and once again with pnpm.
pnpm create tauri-app
cd hello-tauri
pnpm install
Initialize the android support.
NDK_HOME=~/Android/Sdk/ndk/28.0.12433566 pnpm tauri android init
NDK_HOME=~/Android/Sdk/ndk/28.0.12433566 pnpm tauri android build
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: