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

Could not determine the dependencies #31

Open
artuska opened this issue Feb 20, 2018 · 2 comments
Open

Could not determine the dependencies #31

artuska opened this issue Feb 20, 2018 · 2 comments

Comments

@artuska
Copy link

artuska commented Feb 20, 2018

Can you tell what i'm doing wrong only by this error output?:

* What went wrong:
Could not determine the dependencies of task ':cordova-social-ok:odnoklassniki-android-sdk:compileReleaseAidl'.
> Could not resolve all task dependencies for configuration ':cordova-social-ok:odnoklassniki-android-sdk:releaseCompileClasspath'.
   > Could not resolve project :CordovaLib.
     Required by:
         project :cordova-social-ok:odnoklassniki-android-sdk
      > Project :cordova-social-ok:odnoklassniki-android-sdk declares a dependency from configuration 'releaseCompile' to configuration 'release' which is not declared in the descriptor for project :CordovaLib.

This error is thrown both in cordova-social-ok and cordova-social-vk plugins when running the cordova build android --release command.

@LKruglov
Copy link

LKruglov commented Feb 23, 2018

Please see this answer on stackoverflow for workaround.

@artuska
Copy link
Author

artuska commented Feb 23, 2018

Well, it does not help — I already have the same gradle.build configuration as advised on StackOverflow:

dependencies {
    implementation fileTree(dir: 'libs', include: '*.jar')
    // SUB-PROJECT DEPENDENCIES START
    implementation(project(path: "CordovaLib"))
    implementation(project(path: "cordova-social-ok:odnoklassniki-android-sdk")){
        exclude module:("CordovaLib")
    }
    implementation(project(path: "cordova-social-vk:vksdk_library")){
        exclude module:("CordovaLib")
    }
    compile "com.onesignal:OneSignal:3.7.1"
    compile "com.facebook.android:facebook-android-sdk:4.+"
    // SUB-PROJECT DEPENDENCIES END
}

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