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

Issue to copy library from plugin after updating to v7.1.2 #540

Closed
afdev82 opened this issue Nov 9, 2018 · 17 comments
Closed

Issue to copy library from plugin after updating to v7.1.2 #540

afdev82 opened this issue Nov 9, 2018 · 17 comments
Labels

Comments

@afdev82
Copy link
Contributor

afdev82 commented Nov 9, 2018

Everything worked fine in v7.1.1

Now after updating to v7.1.2 I get this error:

BUILD FAILED in 7s
3 actionable tasks: 3 executed
/home/antonio/Projects/smartMirror/smartMirrorApk/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:releaseCompileClasspath'.
> Could not find :deezer-sdk_library-release:.
  Searched in the following locations:
      file:/home/antonio/Projects/smartMirror/smartMirrorApk/platforms/android/app/libs/deezer-sdk_library-release.aar
  Required by:
      project :app

This is the line in my plugin.xml for the plugin that needs the library:

<source-file src="src/android/libs/deezer-sdk_library-release.aar" target-dir="app/libs/" />

I think this could be related to this change: 7.1.1...7.1.2#diff-4f73e5f70cec312ae82aa7d023e3c88b

@brody4hire
Copy link

brody4hire commented Nov 9, 2018 via email

@brody4hire
Copy link

brody4hire commented Nov 9, 2018 via email

@brody4hire brody4hire mentioned this issue Nov 9, 2018
3 tasks
@afdev82
Copy link
Contributor Author

afdev82 commented Nov 9, 2018

For the link: ea6477f#diff-4f73e5f70cec312ae82aa7d023e3c88b

For the test case... I just execute cordova platform add android and I see that the platforms/android/app/libs gets not created with the new version.

I didn't try with the master branch, how could I target this?

PS: I also noticed that if I run cordova prepare android this command updates the cordova-android version, but as far as I know it's not supposed to do that (I think this is a problem with cordova anyway)

@janpio janpio added the support label Nov 9, 2018
@brody4hire
Copy link

For the test case... I just execute cordova platform add android and I see that the platforms/android/app/libs gets not created with the new version.

Can you tell which plugin triggers this behavior?

I didn't try with the master branch, how could I target this?

A couple options:

  • do cordova platform add https://github.com/apache/cordova-android#master (added #master to the end to be on the safe side)
  • do cordova platform add android@nightly

I also noticed that if I run cordova prepare android this command updates the cordova-android version, but as far as I know it's not supposed to do that (I think this is a problem with cordova anyway)

Please report this in a separate issue, along with clear reproduction steps

@brody4hire brody4hire added the bug label Nov 9, 2018
@brody4hire
Copy link

brody4hire commented Nov 9, 2018

I just reproduced this issue in a unit test in WIP PR #541. It is caused by the following changes:

  • CB-13830: Add handlers for plugins that use non-Java source files, such as Camera (commit ea6477f)
  • CB-14125: Increase old plugin compatibility (commit 8a69e32)

@janpio janpio removed the support label Nov 9, 2018
brody4hire pushed a commit to brody4hire/cordova-android that referenced this issue Nov 9, 2018
to verify that apacheGH-540 is resolved

Co-Authored-By: Kyle Kirbatski <[email protected]>
Co-Authored-By: Christopher J. Brody <[email protected]>
Co-Authored-By: @afdev82 (Antonio Facciolo)
@brody4hire
Copy link

@afdev82 it would really help us if you can name the specific plugin that triggers this issue.

We will need to make a specific exception to solve this issue without breaking old plugin compatibility.

brody4hire pushed a commit to brody4hire/cordova-android that referenced this issue Nov 9, 2018
to verify that apacheGH-540 is resolved

Co-Authored-By: Kyle Kirbatski <[email protected]>
Co-Authored-By: Christopher J. Brody <[email protected]>
Co-Authored-By: @afdev82 (Antonio Facciolo)
brody4hire pushed a commit to brody4hire/cordova-android that referenced this issue Nov 9, 2018
to verify that apacheGH-540 is resolved for aar

Co-Authored-By: Kyle Kirbatski <[email protected]>
Co-Authored-By: Christopher J. Brody <[email protected]>
Co-Authored-By: @afdev82 (Antonio Facciolo)
brody4hire pushed a commit to brody4hire/cordova-android that referenced this issue Nov 9, 2018
brody4hire pushed a commit to brody4hire/cordova-android that referenced this issue Nov 11, 2018
for JAR and AAR

(apacheGH-540)

Co-Authored-By: Kyle Kirbatski <[email protected]>
Co-Authored-By: Christopher J. Brody <[email protected]>
Co-Authored-By: @afdev82 (Antonio Facciolo)
brody4hire pushed a commit to brody4hire/cordova-android that referenced this issue Nov 11, 2018
@j3k0
Copy link

j3k0 commented Nov 12, 2018

Hi @brodybits
The cc.fovea.cordova.purchase plugin has the same error (fails on 7.1.2, succeeds on 7.1.1). Cf j3k0/cordova-plugin-purchase#756

@afdev82
Copy link
Contributor Author

afdev82 commented Nov 12, 2018

@afdev82 it would really help us if you can name the specific plugin that triggers this issue.

We will need to make a specific exception to solve this issue without breaking old plugin compatibility.

Hi, the plugin is this: https://github.com/adnotam/cordova-plugin-deezer

@brody4hire
Copy link

Thanks guys. We will test installation with both plugins before releasing the next patch. I think we will need another unit test to check installation of .aidl for cordova-plugin-purchase.

@j3k0
Copy link

j3k0 commented Nov 12, 2018

I think we will need another unit test to check installation of .aidl for cordova-plugin-purchase.

Yes, we had to put an ugly hack in place to have installation/uninstallation work in all cases.

@brody4hire
Copy link

Yes, we had to put an ugly hack in place to have installation/uninstallation work in all cases.

Starting with j3k0/cordova-plugin-purchase@cc229ab

Which seems to deal with the changed res location. I wish you had reported it to us. We did make some efforts to support plugins using the old project structure in the recent patch release, think it would be ideal if we could do this as well.

@j3k0
Copy link

j3k0 commented Nov 12, 2018

I wish you had reported it to us

I didn't as I as thought I was doing something wrong and ended up finding workarounds.

I have no problems reporting all sorts of installation issues we encounter if it's helpful to you... and if it's ok when I end up being the one that screwed up.

Looking forward for the fix!

@brody4hire
Copy link

@j3k0 I just raised #546 for tracking of the issues with cordova-plugin-purchase.

brody4hire pushed a commit that referenced this issue Nov 12, 2018
@afdev82
Copy link
Contributor Author

afdev82 commented Nov 13, 2018

I think we will need another unit test to check installation of .aidl for cordova-plugin-purchase.

Yes, we had to put an ugly hack in place to have installation/uninstallation work in all cases.

Yes, I have also problems to uninstall the plugin too... It doesn't remove the library and if I try to readd the plugin again it throws an error because the library is still there.

@brody4hire
Copy link

brody4hire commented Nov 13, 2018

Issues with cordova-plugin-deezer and https://github.com/j3k0/cordova-plugin-purchase should now be solved by PR #542 on master branch, will be ported to upcoming 7.1.3 patch release.

@j3k0 I am working on a solution that will support https://github.com/j3k0/cordova-plugin-purchase#v7.1.0 (before you made adaptations for cordova-android@7) as part of #547.

P.S. I tested build of cordova-plugin-deezer and https://github.com/j3k0/cordova-plugin-purchase#master with cordova-android@nightly, build succeeds and cordova plugin remove succeeds.

jcesarmobile pushed a commit to jcesarmobile/cordova-android that referenced this issue Nov 13, 2018
@jcesarmobile jcesarmobile mentioned this issue Nov 13, 2018
3 tasks
@jcesarmobile
Copy link
Member

Closing as the PR was merged in master

brody4hire pushed a commit to brody4hire/cordova-android that referenced this issue Nov 14, 2018
for JAR and AAR

(apacheGH-540)

Co-Authored-By: Kyle Kirbatski <[email protected]>
Co-Authored-By: Christopher J. Brody <[email protected]>
Co-Authored-By: @afdev82 (Antonio Facciolo)
brody4hire pushed a commit to brody4hire/cordova-android that referenced this issue Nov 14, 2018
brody4hire pushed a commit to brody4hire/cordova-android that referenced this issue Nov 16, 2018
for JAR and AAR

(apacheGH-540)

Co-Authored-By: Kyle Kirbatski <[email protected]>
Co-Authored-By: Christopher J. Brody <[email protected]>
Co-Authored-By: @afdev82 (Antonio Facciolo)
brody4hire pushed a commit to brody4hire/cordova-android that referenced this issue Nov 16, 2018
brody4hire pushed a commit to brody4hire/cordova-android that referenced this issue Nov 16, 2018
for JAR and AAR

(apacheGH-540)

Co-Authored-By: Kyle Kirbatski <[email protected]>
Co-Authored-By: Christopher J. Brody <[email protected]>
Co-Authored-By: @afdev82 (Antonio Facciolo)
brody4hire pushed a commit to brody4hire/cordova-android that referenced this issue Nov 16, 2018
@brody4hire
Copy link

Now fixed in the latest patch release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants