Migrating from Eclipse ADT to Android Studio 2.1 - error: package android.support.v4.view does not exist

Migrating from Eclipse ADT to Android Studio 2.1 - error: package android.support.v4.view does not exist

在 Android Studio 中,我导入了使用 Eclipse + ADT 开发的项目(如 http://developer.android.com/intl/pt-br/sdk/installing/migrate.html 中所述),一旦 Gradle 构建完成,"import-summary.txt"说:

Replaced Jars with Dependencies:
--------------------------------
The importer recognized the following .jar files as third party
libraries and replaced them with Gradle dependencies instead. This has
the advantage that more explicit version information is known, and the
libraries can be updated automatically. However, it is possible that
the .jar file in your project was of an older version than the
dependency we picked, which could render the project not compileable.
You can disable the jar replacement in the import wizard and try again:

android-support-v4.jar => com.android.support:support-v4:18.0.0
gson-2.3.1.jar => com.google.code.gson:gson:2.3.1

Replaced Libraries with Dependencies:
-------------------------------------
The importer recognized the following library projects as third party
libraries and replaced them with Gradle dependencies instead. This has
the advantage that more explicit version information is known, and the
libraries can be updated automatically. However, it is possible that
the source files in your project were of an older version than the
dependency we picked, which could render the project not compileable.
You can disable the library replacement in the import wizard and try
again:

google-play-services_lib => [com.google.android.gms:play-services:+]
librarySherlok =>
    com.actionbarsherlock:actionbarsherlock:4.4.0@aar
    com.android.support:support-v4:18.0.0

但是在 libraryViewPagerIndicatorCirclePageIndicator.java class 中,我在导入阶段有错误:

import android.support.v4.view.MotionEventCompat;
import android.support.v4.view.ViewConfigurationCompat;
import android.support.v4.view.ViewPager;

其中 Gradle Build 的消息是:

C:..\libraryViewPagerIndicator\src\main\java\com\viewpagerindicator\PageIndicator.java
error: package android.support.v4.view does not exist
.
.
error: cannot find symbol class ViewPager
error: package ViewPager does not exist
error: cannot find symbol variable ViewConfigurationCompat
error: cannot find symbol variable MotionEventCompat
.
.
error: method does not override or implement a method from a supertype
.
.
Error:Execution failed for task ':libraryViewPagerIndicator:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

请注意,在 SDK 中存在 Android 支持库: enter image description here

所以我想知道:

在 libraryViewPagerIndicator 模块中添加 v4 支持库依赖项 build.gradle