-
Notifications
You must be signed in to change notification settings - Fork 144
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
Can't install plugin: Cannot read property '0' of undefined #581
Comments
I encountered the same problem. A week ago build was working but now
|
This seems to be an issue with When I specify the android version explicitly to an earlier version the problem no longer occurs i.e:
|
I encountered the same error. 4 days back every thing is working but now 'ionic cordova platform add android' fails . |
In my case I get the same error when adding the plugin. Ionic: Ionic CLI : 5.4.1 (/usr/local/lib/node_modules/ionic) Cordova: Cordova CLI : 9.0.0 ([email protected]) Utility: cordova-res : 0.6.0 System: Android SDK Tools : 26.1.1 (/Users/adomvris/Library/Android/sdk/) |
Any update from the Branch team? |
|
In the version npm i branch-cordova-sdk@^4.0.0 be omit the requese targetVersionSdk use this version |
Just keep in mind that the tradeoff is that as of version 4.0.0, you have to manually build from Xcode. #601 |
Any news? |
Is this being worked on? |
This is fixed in version 4.0.0, and now works properly with cordova-android 8.1.0. The problem is that version 4.0.0 introduces a change for iOS that makes it so that you cannot build from the command line and now have to build directly in Xcode. Super annoying, as it means that you're forced to choose to use a version that works with Android, or use a different version that works with iOS. |
@noahcooper did you find a work around? Or @adrianyg7 and way to get around this iOS bug on 4.0.0? |
@noahcooper @Mapiac you should be able to use 3.2.1 which is now published, which fixes the issue for cordova-android in the branch plugin's 3.x line. If you're using cordova 8/9 and build using xcode, you'll want to use the 4.0 line. We know about the inability to build on the command line, it's an issue the iOS team will take on at some point but requires significant reorganization of the native library so will take some time. |
@echo-branch would it make sense to close this issue now? |
Version 3.2.1 works for me. |
Since yesterday (September 18) the plugin install doesn't work, without having changed anything. I have a build pipeline with Gitlab CI. It's using a Docker image with all the dependencies preinstalled (npm, cordova, ionic...). A build that was working 2 days ago, is now failing.
I also have the same error on a blank ionic project (
ionic start MyIonicProject tutorial --type=ionic-angular
)My console output:
ionic cordova plugin add branch-cordova-sdk
cordova plugin add branch-cordova-sdk
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Plugin "branch-cordova-sdk" already installed on android.
Adding branch-cordova-sdk to package.json
Cannot read property '0' of undefined
[ERROR] An error occurred while running subprocess cordova.
cordova plugin add branch-cordova-sdk exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
I'm using:
I also tried with
The text was updated successfully, but these errors were encountered: