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

Build failed - Could not resolve all task dependencies for configuration #130

Open
jknowles94 opened this issue Jul 24, 2018 · 2 comments
Open

Comments

@jknowles94
Copy link

HI,

Im having problems building my cordova project due to the issue below:

`BUILD FAILED in 1s
(node:3680) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /Users/jakeknowles/Sites/trent-700/mobile/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not resolve project :com.flyingsoftgames.xapkreader:library.
Required by:
project :app > project :com.flyingsoftgames.xapkreader:downloader_library
> Project :com.flyingsoftgames.xapkreader:downloader_library declares a dependency from configuration 'debugCompile' to configuration 'debug' which is not declared in the descriptor for project :com.flyingsoftgames.xapkreader:library.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.`

I have tried downgrading to Cordova 6.5

Does anyone have any insight to the problem

Thanks

Cordova 8.0, Cordova Android 6.4

@agamemnus
Copy link
Owner

Did you manage to figure this one out?

@jknowles94
Copy link
Author

I had to edit the xapkreader.xml in the following places platforms/android/app/src/main/res/values/xapkreader.xml and plugins/com.flyingsoftgames.xapkreader/res/values/xapkreader.xml
The file seemed to be missing all the strings required for it to work - so after some digging i found the names and populated with what was required. Example below:

<?xml version='1.0' encoding='utf-8'?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
  <string name="xapk_expansion_authority">{{your expansion}}</string>
  <string name="xapk_google_play_public_key">{{your public key}}</string>
  <string name="xapk_text_downloading_assets"> assets…</string>
  <string name="xapk_text_preparing_assets">Preparing assets…</string>
  <string name="xapk_text_download_failed">Download failed.</string>
  <string name="xapk_text_error">Error.</string>
  <string name="xapk_text_close">Close.</string>
  <integer name="xapk_main_version">0</integer>
  <integer name="xapk_patch_version">0</integer>
  <integer name="xapk_main_file_size">0</integer>
  <integer name="xapk_patch_file_size">0</integer>
  <bool name="xapk_auto_download">true</bool>
  <bool name="xapk_auto_permission">false</bool>
  <bool name="xapk_auto_reload">false</bool>
  <string name="xapk_progress_format">percent</string>
</resources>

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