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

[bug] android Failed to assemble APK: i cant`t use custom tauri plugin #12405

Open
berb00 opened this issue Jan 15, 2025 · 0 comments
Open

[bug] android Failed to assemble APK: i cant`t use custom tauri plugin #12405

berb00 opened this issue Jan 15, 2025 · 0 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@berb00
Copy link

berb00 commented Jan 15, 2025

Describe the bug

i cant`t use custom tauri plugin

tauri-cli 2.2.4
create-tauri-app 4.5.9

step1: cargo create-tauri-app
step2: cargo tauri plugin new custom
step3: introduce the custom plugin and do nothing else
step4: cargo tauri android build

Reproduction

No response

Expected behavior

No response

Full tauri info output

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:lintVitalReportUniversalRelease'.
> Could not resolve all dependencies for configuration ':app:universalReleaseCompileClasspath'.
   > Could not resolve project :tauri-plugin-math.
     Required by:
         project :app
      > No matching variant of project :tauri-plugin-math was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.5.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'com.android.build.api.attributes.ProductFlavor:abi' with value 'universal', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
          - No variants exist.

* Try:
> Creating consumable variants is explained in more detail at https://docs.gradle.org/8.9/userguide/declaring_dependencies.html#sec:resolvable-consumable-configs.
> Review the variant matching algorithm at https://docs.gradle.org/8.9/userguide/variant_attributes.html#sec:abm_algorithm.
> 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.

BUILD FAILED in 6s
    Error Failed to assemble APK: command ["/Users/phoenix/Desktop/gogs/tmp/aaa/src-tauri/gen/android/gradlew", "--project-dir", "/Users/phoenix/Desktop/gogs/tmp/aaa/src-tauri/gen/android"] exited with code 1:

Stack trace

No response

Additional context

No response

@berb00 berb00 added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

1 participant