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.

Fix compatibility w/ other plugins due to android-support-v4.jar

See original GitHub issue

In order to work w/ other plugins which uses android-support-v4 as well such as Facebook and Push Notifications it is recommended to replace

 <lib-file src="libs/android/android-support-v4.jar" />

with

<framework src="com.android.support:support-v4:+" />

For more details: https://github.com/phonegap-build/PushPlugin/issues/492

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
t3nochcommented, Jul 23, 2015

Hi, just extending @sgrebnov comment, I had the plugin installed and my app was not compiling on android for exactly this problem. The solution was

  1. remove the plugin
ionic plugin rm de.appplant.cordova.plugin.local-notification
  1. add the plugin again
ionic plugin add https://github.com/katzer/cordova-plugin-local-notifications.git
  1. Go to /project_dir/plugins/de.appplant.cordova.plugin.local-notification/plugin.xml line 136 where you should find
<lib-file src="libs/android/android-support-v4.jar" />

and change it for

<framework src="com.android.support:support-v4:+" />
  1. remove Android platform
ionic platform rm android
  1. add android again
ionic platform add android
  1. Build and it should work now
0reactions
katzercommented, Dec 10, 2015

Has been fixed in the meantime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android-support-v4.jar isn't importing correctly in Eclipse
Right click on ur project --> select android tools --> select add support library and simply installed the supporting libraries ...
Read more >
Support Library Packages - Android Developers
The Android Support Library contains several library packages that can be included in your application. Each of these libraries supports a specific range...
Read more >
IOException: android-support-v4.jar already exists
FOUND SOLOTION (WELL, IT WORKS...): I just removed android-support-v4.jar from Assets\Plugins\Android and it started working. Comment.
Read more >
Diff - 848e872^! - platform/sdk - Git at Google
ADT fix: support Compatibility library in NPW This fixes the NPW so that it ... diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide ...
Read more >
Firebase Android SDK Release Notes - Google
Fixed an issue in waitForPendingWrites() that could lead to a ... The Firebase Authentication Android library now works on devices without Google Play ......
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