agamemnus / cordova-plugin-xapkreader

Easily access Google Play APK expansion file data.
32 stars 55 forks source link

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

Open jknowles94 opened 6 years ago

jknowles94 commented 6 years ago

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.

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 commented 5 years ago

Did you manage to figure this one out?

jknowles94 commented 5 years ago

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>