question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android release - UnmetDependencyException

See original GitHub issue

Hi guys, I’m using your plugin and I’ve faced with following issue: When I build android debug application with “ionic build android” command all works fine, I can simulate crashes and see statistic in dashboard. But when I build app for production release with “ionic build android --release” I got following error: Unfortunately, “app name” has stopped. Via adb logcat I got error: io.fabric.sdk.android.services.concurrency.UnmetDependencyException: This app relies on Crashlytics. Please sign up for access at https://fabric.io/signup

I was able to fix that issue by creation of additional file \mobile\platforms\android\res\values\com_crashlytics_export_strings.xml with following content:

<?xml version="1.0" encoding="utf-8" standalone="no"?> <resources> <string xmlns:ns0="http://schemas.android.com/tools" name="com.crashlytics.android.build_id" ns0:ignore="UnusedResources,TypographyDashes" translatable="false">964B963A-E397-44CE-BEDD-207C42AB1D6C</string> </resources>

But it’s very unuseful to do that after each “ionic state reset”. Could you help me with this?

Best regards, Roman

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
pjorqueracommented, May 16, 2017

Which Cordova version are you using? With Cordova 6.5.0 I can successfully use the Fabric plugin but when I moved my project to Cordova 7.0.1 there’s a runtime exception of type UnmetDependencyException

0reactions
fryckcommented, Nov 14, 2017

I’ve created a cordova hook (after_plugin_install) and it wortks now for cordova v7 :

#!/usr/bin/env node

var fs = require('fs');
var path = require('path');
var uuidV4 = require('uuid/v4');
var xml2js = require('xml2js');

module.exports = function crashlyticsExportStrings(context) {
  if (context.opts.plugin.id !== 'cordova-fabric-plugin') {
    return ;
  }
  var filePath = path.join(context.opts.projectRoot, 'platforms', 'android', 'res', 'values', 'com_crashlytics_export_strings.xml');
  var uuid = uuidV4();
  var builder = new xml2js.Builder({
    'xmldec' : {
      encoding: "utf-8",
      standalone: false
    }
  });
  var xml = builder.buildObject({
    resources: {
      string: { 
        $: {
          "xmlns:ns0": "http://schemas.android.com/tools",
          name: "com.crashlytics.android.build_id",
          "ns0:ignore": "UnusedResources,TypographyDashes",
          translatable: false
        },
        _: uuidV4()
      }
    }
  });
  fs.writeFileSync(filePath, xml, 'utf8');
};
Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I fix this CrashlyticsMissingDependencyException?
As mentioned in the answers below, we're working on a fix, but using 1.14. · I just try to uninstall and install the...
Read more >
Unmet dependencies during 'npm install' · Issue #466 - GitHub
After doing a clean npm install I am seeing the following on Node v0.10.29 and NPM v1.4.14: npm WARN unmet dependency ...
Read more >
Error npm WARN unmet dependency in nodejs - Edureka
I have a node package. When I run npm install from the package root, it installs a bunch of things, but then prints...
Read more >
[jitsi-dev] jitsi meet android app unmet dependency
Just did a fresh git clone and am having issues with webpack version. I installed nodejs 6 on ubuntu and after doing npm...
Read more >
Unable to build to android. (Newbie) - Qt Forum
I am new to QT and I am trying to build to Android. ... It has unmet dependencies: lib/libQt5Svg.so. ... your ndk version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found