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

Android build error #168

Closed
gabaum10 opened this issue Jul 18, 2016 · 4 comments
Closed

Android build error #168

gabaum10 opened this issue Jul 18, 2016 · 4 comments

Comments

@gabaum10
Copy link

gabaum10 commented Jul 18, 2016

So this could very well be a configuration error on my end, but I'm getting this error running the cordova android builds:

Error: Missing attribute value for attribute android:pathPrefix of element data
child_process.js:529
throw err;
^

Error: Command failed: cordova build android --device --buildConfig ../devBuild.json --debug

As best I can tell, it's because there is a duplicate path or something? I tried deleting my old app off the branch dashboard and adding a new one using the same path. Perhaps that screwed it up? I have no idea how to fix it if that's it. I thought as long as you had a different key, you could use the same paths?

@aaustin
Copy link
Contributor

aaustin commented Jul 18, 2016

You were using this build command to add the SDK?
cordova plugin add https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking.git --variable BRANCH_KEY=your-branch-key --variable URI_SCHEME=your-app-uri-scheme --variable

And what is the current appearance of your tags in the config.xml?

@gabaum10
Copy link
Author

gabaum10 commented Jul 19, 2016

I'm currently running the install via npm like so

cordova plugin add branch-cordova-sdk --variable BRANCH_KEY=branchKey --variable URI_SCHEME=uriScheme

The tags in my config.xml look like this:
<branch-config> <ios-team-id value="xxxxxxxxxx" /> <host name="xxxx.app.link" scheme="https" /> <host name="xxxx-alternate.app.link" scheme="https" /> </branch-config>

where the xxxx's are our app prefix in the branch dashboard. Am I missing something?

@gabaum10
Copy link
Author

After updating the plugin installation to point to the git repo, this problem went away. I guess it's just not deployed to npm?

@aaustin
Copy link
Contributor

aaustin commented Jul 21, 2016

Thanks for the heads up on this @gabaum10 - I found the issue (actually multiple) and have confirmed that NPM is resolved now with 2.1.10. I'm not sure how we weren't alerted to this earlier.

@aaustin aaustin closed this as completed Jul 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants