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 fails #57

Open
federicotarantino opened this issue Nov 18, 2016 · 5 comments
Open

Android build fails #57

federicotarantino opened this issue Nov 18, 2016 · 5 comments

Comments

@federicotarantino
Copy link

federicotarantino commented Nov 18, 2016

Steps to reproduce:

cordova create test
cordova platform add android
cordova plugin add cordova-plugin-connectsdk
cordova build android

I have this error:
A problem occurred configuring root project 'android'.
Cannot evaluate module Connect-SDK-Android : Configuration with name 'debug' not found.

It seems a gradle error.

Thanks

@mtkopone
Copy link

I can confirm this happens after upgrading cordova android platform to >= 6.0.0

As this is also a problem for me, any help to finding out what's causing this would be nice...

@federicotarantino
Copy link
Author

It seems a bug of cordova in 6.4.0. Try with 6.3.0. Worked for me (you must remove platform and re-add)

@firecow
Copy link

firecow commented Mar 9, 2017

I'm using Cordova 6.5.0 & Cordova-Android 6.1.2, i am also seeing this error message.
I'll try downgrading versions, to locate which version introduced this.

@firecow
Copy link

firecow commented Mar 9, 2017

Cordova-Android 5.2.2 is highest working version for avoiding this error message.
Main Cordova version doesn't matter.

How can we fix up the code to build with lastest Cordova-Android 6.1.2 ?

@phablulo
Copy link

phablulo commented Jun 27, 2017

I've just found a workaround. It's working on Cordova-Android 6.2.3.

  • Inside your project open platform/android/cordova/lib/builders/GradleBuilder.js (or node_modules/cordova-android/bin/templates/cordova/lib/builders/GradleBuilder.js if you have not added Android to your platforms yet).
  • Look for the lines who says:
    depsList += ' debugCompile(project(path: "' + libName + '", configuration: "debug")), and
    depsList += ' releaseCompile(project(path: "' + libName + '", configuration: "release"))
    (these lines were 136 and 138 here. It might change depending on your cordova-android version)
  • Change them to:
    depsList += ' debugCompile(project(path: "' + libName + '"))';, and
    depsList += ' releaseCompile(project(path: "' + libName + '"))';
  • Build or run again

That's it.
Hope it helps someone out there

seokhee-lee added a commit that referenced this issue Oct 15, 2020
This patches resolve the issues: #42, #43, #56, #57, #69, #70, #71 with
following changes:
-Fix build errors
-Remove update check process with the broken link in android-install.js
-Remove update check process with the broken link in ios-install.js
-Change media URLs in SamplerEventHandler.js
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

4 participants