You are using
compile 'com.android.support:design:22.2.1'
He has a dependency on 'com.android.support:appcompat-v7:22.2.1'
This means that your project has the appcompat library as well, unless you added it to build.gradle, so you can use AppCompatActivityandActionBar
Here's the pom file:
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.android.support</groupId>
<artifactId>design</artifactId>
<version>22.2.1</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>appcompat-v7</artifactId>
<version>22.2.1</version>
<type>aar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-v4</artifactId>
<version>22.2.1</version>
<type>aar</type>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
gradle dependencies.
. (src: gradle )