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.

v3.0.3-rc.4 Causes android crash with latest android SDKs

See original GitHub issue

Running with command:

meteor run android-device --settings settings.json --production --mobile-server=https://my-mobile-server.example.com

With the very latest android SDKs:

  • SDK Tools 25.1.6
  • Platform tools 23.1
  • Build tools 23.0.3
  • SDK Platform v23
  • Google Play Services 30
  • Android Support Repository 32

, I get the following stacktrace:

05-20 22:52:38.275 16059 16204 E AndroidRuntime: java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'com.google.android.gms.iid.zzd' appears in /data/app/com.example.app-1/base.apk)
05-20 22:52:38.275 16059 16204 E AndroidRuntime:    at com.google.android.gms.iid.zzd.zzeC(Unknown Source)
05-20 22:52:38.275 16059 16204 E AndroidRuntime:    at com.google.android.gms.iid.zzd.<init>(Unknown Source)
05-20 22:52:38.275 16059 16204 E AndroidRuntime:    at com.google.android.gms.iid.zzd.<init>(Unknown Source)
05-20 22:52:38.275 16059 16204 E AndroidRuntime:    at com.google.android.gms.iid.InstanceID.zza(Unknown Source)
05-20 22:52:38.275 16059 16204 E AndroidRuntime:    at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source)
05-20 22:52:38.275 16059 16204 E AndroidRuntime:    at com.adobe.phonegap.push.PushPlugin$1.run(PushPlugin.java:73)
05-20 22:52:38.275 16059 16204 E AndroidRuntime:    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
05-20 22:52:38.275 16059 16204 E AndroidRuntime:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
05-20 22:52:38.275 16059 16204 E AndroidRuntime:    at java.lang.Thread.run(Thread.java:818)

There look to be a couple of related issues on stackoverflow:

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
cunneencommented, Jun 7, 2016

I updated my android SDK to the latest, and updated to rc.5, and it all seems to work well.

Thanks again for your work on this!

0reactions
indesignlatamcommented, Jun 6, 2016

Hello,

I just updated to rc-5 and now this error is appearing. Hope this can help to find the issue.

This happens when i run meteor build

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
   > Could not find com.android.support:support-v4:23.4.0.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/support-v4/23.4.0/support-v4-23.4.0.pom
         https://repo1.maven.org/maven2/com/android/support/support-v4/23.4.0/support-v4-23.4.0.aar
         file:/Users/pmogollon/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.pom
         file:/Users/pmogollon/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.aar
         file:/Users/pmogollon/Library/Android/sdk/extras/google/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.pom
         file:/Users/pmogollon/Library/Android/sdk/extras/google/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.aar
     Required by:va app for Android          -
         :android:unspecified > com.android.support:support-v13:23.3.0
   > Could not find com.android.support:support-v4:23.4.0.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/support-v4/23.4.0/support-v4-23.4.0.pom
         https://repo1.maven.org/maven2/com/android/support/support-v4/23.4.0/support-v4-23.4.0.aar
         file:/Users/pmogollon/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.pom
         file:/Users/pmogollon/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.aar
         file:/Users/pmogollon/Library/Android/sdk/extras/google/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.pom
         file:/Users/pmogollon/Library/Android/sdk/extras/google/m2repository/com/android/support/support-v4/23.4.0/support-v4-23.4.0.aar
     Required by:
         :android:unspecified > com.google.android.gms:play-services-gcm:8.4.0 > com.google.android.gms:play-services-base:8.4.0 > com.google.android.gms:play-services-basement:8.4.0

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

BUILD FAILED

Total time: 9.507 secs
=> Errors executing Cordova commands:         

   While building Cordova app for platform Android:
   Error code 1 for command: /Applications/MAMP/htdocs/paisano/paisano-app/.meteor/local/cordova-build/platforms/android/gradlew with args:
   cdvBuildDebug,-b,/Applications/MAMP/htdocs/paisano/paisano-app/.meteor/local/cordova-build/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

EDIT: I can confirm that everything work as it should on iOS, sound works without any modifications, all works nicely.

Thanks for this great package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
My React Native App Crash After Update Target Sdk Version 31
It was working version 30. Google play forced us this update. The app crashes on Android 12 version devices. It works on android...
Read more >
Flutter app crashes on start on Android: couldn't find "libflutter ...
Steps to Reproduce Build an APK or bundle on latest master commit, install on any device and the app will crash before it...
Read more >
Firebase Android SDK Release Notes
Learn how to install these SDKs in your app: Add Firebase to your Android Project. ... Addressed a potential cause of an OutOfMemoryError...
Read more >
Release Notes - Helpshift for Android - Developer Guide
However, this disconnect will not cause any malfunction or crash on the parent application. Use the latest sdk version. If you have released...
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