androidandroid-support-libraryandroid-gradle-3.0

android.support.v4.animation missing in API 26


I am facing an issue: android.support.v4.animation.* is missing and I cannot find any solution.

Android Plugin upgrade to 3.0 requires buildToolsVersion and compileSDKVersion to 26+ and this package is missing.


Solution

  • You won't find android.support.v4.animation.* in 26+ seemingly because min SDK version has been increased to 14 from 26.0.0 Alpha 1 as described here:

    Note: The minimum SDK version has been increased to 14. As a result, many APIs that existed only for API < 14 compatibility have been deprecated. Clients of these APIs should migrate to their framework equivalents as noted in the reference page for each deprecated API.

    Many new classes, methods, and constants added to provide backwards-compatible support for platform APIs added in O Preview as specified here.

    Hope you're using 26+ support lib version for com.android.support:appcompat-v7. Notice diff in ItemTouchHelper from below 26 and 26+. One includes android.support.v4.animation.* other doesn't and uses classes from android.animation package:

    enter image description here