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 build not including capacitor plugins #7660

Closed
1 of 3 tasks
kylejoeckel opened this issue Sep 16, 2024 · 5 comments
Closed
1 of 3 tasks

[Bug]: Android build not including capacitor plugins #7660

kylejoeckel opened this issue Sep 16, 2024 · 5 comments
Labels
needs reproduction needs reproducible example to illustrate the issue

Comments

@kylejoeckel
Copy link

Capacitor Version

[warn] The bundledWebRuntime configuration option has been deprecated. Can be safely deleted.
💊 Capacitor Doctor 💊

Latest Dependencies:

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

Installed Dependencies:

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

[success] iOS looking great! 👌
[success] Android looking great! 👌

Other API Details

Kyles-MBP-2:micard-next-capacitor kylejoeckel$ pnpm -v
9.1.1
Kyles-MBP-2:micard-next-capacitor kylejoeckel$ node -v
v22.5.1
"next": "14.1.0"

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

The app successfully builds and i am able to navigate around a few of the account creation and sign up pages however when i try to log in or create an account ( the first use case for a capacitor plugin ie Preferences ) i recieve an error "Preferences is not implemented on android". Similarly, i get the same error with any other capacitor such as browser or camera. I've run the normal commands for this process such as sync and copy. I should note that the iOS version works as expected with no issue.

Expected Behavior

Obviously these packages should be converting and working as expected in the android build.

Project Reproduction

https://github.com/miware-org/micard-next-capacitor/tree/android

Additional Information

No response

@jcesarmobile jcesarmobile added the needs reproduction needs reproducible example to illustrate the issue label Sep 16, 2024
Copy link

ionitron-bot bot commented Sep 16, 2024

This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed.
Please see the Contributing Guide for how to create a Sample App.
Thanks! Ionitron 💙

@ionitron-bot ionitron-bot bot removed the triage label Sep 16, 2024
@Ionitron Ionitron added needs reply needs reply from the user and removed needs reply needs reply from the user labels Sep 16, 2024
@jcesarmobile jcesarmobile added the needs reply needs reply from the user label Sep 16, 2024
@curlyz
Copy link

curlyz commented Sep 22, 2024

Probably due to NPM packages is installed with Bun or PNPM. Since these use symlink, not a real files in node_modules.
And pod install turned out need a real files.

@Ionitron Ionitron removed the needs reply needs reply from the user label Sep 22, 2024
@jcesarmobile jcesarmobile added the needs reply needs reply from the user label Sep 24, 2024
@TheBoneJarmer
Copy link

TheBoneJarmer commented Oct 2, 2024

Hi, I just hit a similar issue and I realized that the folder capacitor-cordova-android-plugins and the file local.properties are being ignored by git. I had to remove the android folder and re-run npx cap add android to realize this. I just checked and they are indeed present in the .gitignore file:

capacitor-cordova-android-plugins

local.properties

I don't know if it helps or is related at all but I feel like it is a bit too much of a confidence that your build is lacking the exact plugin folder that is on the gitignore list

@Ionitron Ionitron removed the needs reply needs reply from the user label Oct 2, 2024
@jcesarmobile
Copy link
Member

Closing since the provided repository is not accessible

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2024
Copy link

ionitron-bot bot commented Nov 7, 2024

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 Nov 7, 2024
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
Projects
None yet
Development

No branches or pull requests

5 participants