-
Notifications
You must be signed in to change notification settings - Fork 608
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
"@capacitor/share": "^6.0.0" build error #2133
Comments
Hello, I have the same problem in an Ionic Angular App where I use version 5.0.7 of the plugin after increasing the values of variables.gradle
from package.json "@angular/animations": "17.3.10",
"@angular/cdk": "17.3.10",
"@angular/common": "17.3.10",
"@angular/core": "17.3.10",
"@capacitor/android": "^5.7.5",
"@capacitor/app": "^5.0.7",
"@capacitor/camera": "^5.0.9",
"@capacitor/clipboard": "^5.0.7",
"@capacitor/core": "^5.7.5",
"@capacitor/device": "^5.0.7",
"@capacitor/filesystem": "^5.2.1",
"@capacitor/geolocation": "^5.0.7",
"@capacitor/haptics": "^5.0.7",
"@capacitor/ios": "^5.7.5",
"@capacitor/keyboard": "^5.0.8",
"@capacitor/local-notifications": "^5.0.7",
"@capacitor/network": "^5.0.7",
"@capacitor/preferences": "^5.0.7",
"@capacitor/screen-orientation": "^5.0.7",
"@capacitor/share": "^5.0.7", Android Error
@Override
public void load() {
broadcastReceiver =
new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
chosenComponent = intent.getParcelableExtra(Intent.EXTRA_CHOSEN_COMPONENT, ComponentName.class);
} else {
chosenComponent = getParcelableExtraLegacy(intent, Intent.EXTRA_CHOSEN_COMPONENT);
}
}
}; <----- CRASH HERE
ContextCompat.registerReceiver(
getContext(),
broadcastReceiver,
new IntentFilter(Intent.EXTRA_CHOSEN_COMPONENT),
ContextCompat.RECEIVER_EXPORTED
);
} I have seen that it is also reported in this github issue |
This issue needs more information before it can be addressed. Please see the Contributing Guide for how to create a Sample App. Thanks! |
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! |
According this commit it should be fixed in 6.0.2: |
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 the plugin, please create a new issue and ensure the template is fully filled out. |
Bug Report
Plugin(s)
@capacitor/share
Capacitor Version
6.0.0
Platform(s)
Android 14
Current Behavior
Expected Behavior
Code Reproduction
Other Technical Details
Additional Context
The text was updated successfully, but these errors were encountered: