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: (jarsigner: unable to open jar file) error when using android flavors #6215

Closed
sabereen opened this issue Jan 14, 2023 · 3 comments
Closed
Labels
needs reproduction needs reproducible example to illustrate the issue platform: android

Comments

@sabereen
Copy link

Bug Report

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 4.6.1
  @capacitor/core: 4.6.1
  @capacitor/android: 4.6.1
  @capacitor/ios: 4.6.1

Installed Dependencies:

  @capacitor/ios: not installed
  @capacitor/cli: 4.6.1
  @capacitor/core: 4.6.1
  @capacitor/android: 4.6.1

[success] Android looking great! �

Platform(s)

android

Current Behavior

It is not signed when I use android flavors.

× Signing Release - failed!
[error] jarsigner: unable to open jar file:
        C:\Users\MQT\projects\microblog\android\app\build\outputs\apk\release\app-FLAVOR-release-unsigned.apk

Expected Behavior

My APK is in this path:

C:\Users\MQT\projects\microblog\android\app\build\outputs\apk\FLAVOR\release\app-FLAVOR-release-unsigned.apk

So jarsigner should sign this path instead.

Code Reproduction

Define android build falvors and build project using a flavor.

Other Technical Details

npm --version output:
yarn 1.22.19

node --version output:
v16.15.1

@ionitron-bot ionitron-bot bot added the triage label Jan 14, 2023
@ionitron-bot ionitron-bot bot removed the triage label Jan 14, 2023
@jcesarmobile jcesarmobile added the needs reproduction needs reproducible example to illustrate the issue label Jan 17, 2023
@Ionitron
Copy link
Collaborator

This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue.

Please see the Contributing Guide for how to create a Code Reproduction.

Thanks!
Ionitron 💙

@Ionitron Ionitron added the needs reply needs reply from the user label Jan 17, 2023
@Ionitron
Copy link
Collaborator

Ionitron commented Feb 2, 2023

It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.

Have a great day!
Ionitron 💙

@Ionitron Ionitron closed this as completed Feb 2, 2023
@Ionitron Ionitron removed the needs reply needs reply from the user label Feb 2, 2023
@ionitron-bot
Copy link

ionitron-bot bot commented Mar 4, 2023

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Mar 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs reproduction needs reproducible example to illustrate the issue platform: android
Projects
None yet
Development

No branches or pull requests

3 participants