Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

package android.support.v4.animation does not exist import android.support.v4.animation.AnimatorCompatHelper;

Tags:

android

osmand

I want run OsmAnd in android studio , but I get the following error:

:OsmAnd:generateFreeresLegacyX86DebugSources
:OsmAnd:incrementalFreeresLegacyX86DebugJavaCorpilationSafegyard
:OsmAnd: javaPreCompileFreeresLegacyX86Debug 
:OsmAnd:corpileFreeresLegacyX86DebugJavaWithJavac
F:\Users\kamali\not importet 6: error: package android.support import android.support.v4.animation.AnimatorComapatHelpe 
F:\Users\kamali\not importet Drolect\Osmand\Osmand\Osuthnd\src\net\osmand\nlus\audionotes\AudiovideoNoteRecordinaMenuFullScreen. lava: 7: error: package android. support import android.support.v4.animation.AnimatorUpdateListenerCompat; 
F:\Users\kamali\not importet Drolect\Osmand\Osmand\Osuthnd\src\net\osmand\Dlus\audionotes\AudiovideoNoteRecordinaMenuFullScreen. lava: 8: error: package android. support import android.support.v4.animation.ValueAnimatorCowat; 
F:\Users\kamali\not importet proiect\Osmand\Osmand\OsmAnd\src\net\osmand\plus\audionotes\AudioVideoNoteRecordinaMenuFullScreen.iava:28: error: cannot find symbol protected ValueAnimatorCompat animatorCompat; 
symbol: class ValueAnimatorCompat location: class AudioVideoNoteRecordingMenuFullScreen F:\Users\kamali\not importet prolectOsmand\Osmand\OsircAnd\src\net\osmand\plus\audionotes\AudioVideoNoteRecordincjMenuFu1lScreen. lava: 136: error: cannot find symbol animatorCompat = AnimatorCompatHelper.emptyValueAnimator(); 
symbol: variable AnimatorCompatHelper location: class AudioVideoNoteRecordingMenuFullScreen F:\Users\kamali\not importet proiect\Osmand\Osmand\OsmAnd\sranet\osmand\plus\audionotes\AudioVideoNoteRecordinaMenuFullScreen.iava:140: error: cannot find symbol animatorCompat.addUpdateListener(new AnimatorUpdateListenerCompat() 
symbol: class AnimatorUpdateListenerCompat location: class AudioVideoNoteRecordingMenuFullScreen Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 

enter image description here

please help me .

like image 798
mhkyazd Avatar asked Aug 05 '17 09:08

mhkyazd


1 Answers

I fixed my issue from this repo https://github.com/jordyamc/android-advancedrecyclerview/ BaseItemAnimationManager

import android.view.animation.Interpolator;

protected void resetAnimation(RecyclerView.ViewHolder holder) {
        clearInterpolator(holder.itemView);
        endAnimation(holder);
    }

protected void clearInterpolator(View v) {
        ViewCompat.setAlpha(v, 1.0F);
        ViewCompat.setScaleY(v, 1.0F);
        ViewCompat.setScaleX(v, 1.0F);
        ViewCompat.setTranslationY(v, 0.0F);
        ViewCompat.setTranslationX(v, 0.0F);
        ViewCompat.setRotation(v, 0.0F);
        ViewCompat.setRotationY(v, 0.0F);
        ViewCompat.setRotationX(v, 0.0F);
        //v.setPivotY((float)(v.getMeasuredHeight() / 2));
        ViewCompat.setPivotX(v, (float) (v.getMeasuredWidth() / 2));
        ViewCompat.animate(v).setInterpolator((Interpolator) null);
    }
like image 96
amorenew Avatar answered Oct 15 '22 18:10

amorenew