gpt4 book ai didi

android - 包 android.support.v4.animation 不存在 导入 android.support.v4.animation.AnimatorCompatHelper;

转载 作者:行者123 更新时间:2023-12-02 14:32:02 25 4
gpt4 key购买 nike

我想在 android studio 中运行 OsmAnd,但出现以下错误:

: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

请帮助我。

最佳答案

我通过这个存储库解决了我的问题 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);
}

关于android - 包 android.support.v4.animation 不存在 导入 android.support.v4.animation.AnimatorCompatHelper;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45520217/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com