Questions tagged [support-v4]

37 questions
21
votes
1 answer

Android: force gradle to include only one version of a library

I use 'com.android.support:support-v4:23.3.0' in my build.gradle but when explore external libraries I see two version of support-v4 library (23.3.0 & 24.0.0). How can I find which dependency use support-v4:24.0.0 library? How can I force gradle to…
Mneckoee
  • 1,833
  • 5
  • 16
  • 29
9
votes
3 answers

support-v4:27.1.0 fragment custom animations do not work as expected

Fragment animations do not work properly with support-v4:27.1.0 getSupportFragmentManager() .beginTransaction() .setCustomAnimations(ENTER_ANIM , LEAVE_ANIM) .replace(R.id.main_activity_fragment_place_holder, fragment) …
Abdelstar Ahmed
  • 139
  • 1
  • 8
8
votes
2 answers

Could not find class 'android.graphics.drawable.RippleDrawable'

I'm using a third party library, there is a method using DrawableCompat.setTintMode(drawable, PorterDuff.Mode.SRC_IN);. When I test my app in android 5.0+,there was no problem and worked well.But when it came to android 4.4.4, it threw an…
wizChen
  • 788
  • 2
  • 7
  • 17
7
votes
1 answer

Android project build successfully but ran failed with error: java.util.zip.ZipException: duplicate entry

I have update my android studio and SDK and some package dependencies on grade of the project and since then I have faced with a lot of problem that I think the reason is incompatibility between dependencies. As I researched I found that many…
Sir1
  • 722
  • 1
  • 8
  • 18
5
votes
8 answers

Could not find support-v4.jar (com.android.support:support-v4:24.0.0)

Error:A problem occurred configuring project ':app'. Could not find support-v4.jar (com.android.support:support-v4:24.0.0). Searched in the following locations: …
Jay
  • 236
  • 1
  • 4
  • 11
4
votes
1 answer

android.support.v4.media.app.NotificationCompat.MediaStyle() and import android.support.v4.app.NotificationCompat; problems

Hi i have problems when i try to update ( migration to andoridx, i added some pictures at the end of this post) my app, especialy in this code: .setStyle(new android.support.v4.media.app.NotificationCompat.MediaStyle() …
Melissa
  • 41
  • 4
3
votes
2 answers

Cordova build failed : Could not find support-v4.jar

I don't know what i did but my build fail until 3 hours on android and I can't fix it ... There is the log : ANDROID_HOME= C:\Users\User\AppData\Local\Android\Sdk JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121 Subproject Path: CordovaLib The…
Lina M
  • 83
  • 1
  • 9
3
votes
3 answers

Cannot resolve symbol 'ViewCompat'

Complete gradle file, and even unable to resolve the symbol 'AppCompatActivity'. Don't understand what's wrong. Already tried options :: 1) Clean and Rebuild 2) Invalidate/Catches and Restart apply plugin: 'com.android.application' apply plugin:…
Android Guy
  • 433
  • 1
  • 5
  • 17
3
votes
0 answers

Failed resolution of: Landroid/support/v4/util/ArrayMap;

for some reason my app dosent work on devices with api 21&&22 in relsase mode (in debug mode everything is fine) the app crash right away after start in the console i am getting this error ava.lang.NoClassDefFoundError: Failed resolution of:…
Ido Kahana
  • 221
  • 1
  • 10
3
votes
1 answer

Enabling Instant run giving run time error from 2.2.3

If I Disable the instant run everything works fine but if i enable it am getting the following error from android gradle 2.2.3 on wards. please find the error log below AndroidRuntime: FATAL EXCEPTION: main Process: com.click2clinic.clinicopedia,…
3
votes
3 answers

How to exclude the support v4 library from the studio?

FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry:…
SUNIL GOWROJI
  • 123
  • 1
  • 1
  • 10
2
votes
2 answers

How to use TextViewCompat for text autosize below API 26?

I need to use autosizing in TextView below API 26, so I read this: https://developer.android.com/guide/topics/ui/look-and-feel/autosizing-textview The library provides support to Android 4.0 (API level 14) and higher. The android.support.v4.widget…
NullPointerException
  • 32,153
  • 66
  • 194
  • 346
2
votes
1 answer

How to implement android.support.v4.widget.TextViewCompat to autosize text if API is < 26

I'm trying to implement the new textview autosize functionality on my app. I need to target API 21 then I read something about the backward compatibility using android.support.v4.widget.TextViewCompat but really I don't understand how to implement…
2
votes
0 answers

react-native package android.support.v4.media does not exist

I am using react-native 0.57.1 react-native track player 0.2.5 I have got following error: C:\zzzprojects\app\node_modules\react-native-track-player\android\src\main\java\guichaguri\trackplayer\metadata\Metadata.java:9: error: package…
2
votes
2 answers

android.support.v4.app.INotificationSideChannel$Stub$Proxy

com.hendraanggrian.appcompat:socialview:0.1 library work with androidx. when i add this library to my project I got support.v4 error : Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy for solving this…
nariman amani
  • 233
  • 5
  • 21
1
2 3