support-v4

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

北战南征 提交于 2019-12-05 20:14:51
问题 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) .addToBackStack(tag) .commitAllowingStateLoss(); enter animation <alpha xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator" android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="500" /> leave

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

柔情痞子 提交于 2019-12-04 03:08:57
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) .addToBackStack(tag) .commitAllowingStateLoss(); enter animation <alpha xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator" android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="500" /> leave animation <alpha xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim

How to exclude the support v4 library from the studio?

人走茶凉 提交于 2019-12-01 08:38:29
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: android/support/v4/content/Loader$OnLoadCompleteListener.class Code in build.gradle file apply plugin: 'com.android.application' dependencies { compile fileTree(dir: 'libs', include: '*.jar') //compile project(':ActionBarSherlock-4.1.0') compile project(':GooglePlayServicesLibrary') compile files('libs/eventbus-2.4.0.jar') compile (project(':AndroidBetterPickers')){ exclude

How to exclude the support v4 library from the studio?

给你一囗甜甜゛ 提交于 2019-12-01 07:59:31
问题 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: android/support/v4/content/Loader$OnLoadCompleteListener.class Code in build.gradle file apply plugin: 'com.android.application' dependencies { compile fileTree(dir: 'libs', include: '*.jar') //compile project(':ActionBarSherlock-4.1.0') compile project('

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

假装没事ソ 提交于 2019-11-30 05:27:10
问题 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: https://jcenter.bintray.com/com/android/support/support-v4/24.0.0/support-v4-24.0.0.jar MY SDK Tool is like this image And my Gradle is buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric

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

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 07:06:43
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 people have same problems and it is not rare. I have solved some of the error but problems just appears one after another and I am just confused. hope you can help me find out the problem and its solution. Code works well on new android versions ! (a little strange) and I can compile and run the app on android 21+. but when I try to run it on below 21

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

走远了吗. 提交于 2019-11-28 09:45:27
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 only add version 23.3.0? this is my dependency list in build.gradle: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.3.0' compile 'com.android.support:support-v4:23.3.0' compile 'com.android.support:design:23.3.0' compile 'com.android.support:recyclerview-v7:23.3.0' compile 'com.android

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

十年热恋 提交于 2019-11-28 00:32:27
问题 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 people have same problems and it is not rare. I have solved some of the error but problems just appears one after another and I am just confused. hope you can help me find out the problem and its solution. Code works well on new android versions ! (a

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

笑着哭i 提交于 2019-11-27 04:46:56
问题 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 Exception: 05-09 13:15:15.030 26447-26447/com.wizchen.athit E/AndroidRuntime: FATAL EXCEPTION: main Process: com.wizchen.athit, PID: 26447 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wizchen.athit/com.wizchen.athit.view.activity

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

主宰稳场 提交于 2019-11-27 03:12:01
问题 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 only add version 23.3.0? this is my dependency list in build.gradle: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.3.0' compile 'com.android.support:support-v4:23.3.0' compile 'com