Arut
Arut

Reputation: 21

package does not exist error in Android Studio

In gradle file i have included 'com.android.support:support-v4:19.0.0 but still error shows up

Execution failed for task ':app:compileDebugJava'.

Compilation failed; see the compiler error output for details.

error: package android.support.v7.app does not exist

Upvotes: 1

Views: 6431

Answers (1)

Scott Barta
Scott Barta

Reputation: 80020

I assume you're using the ActionBar class or something else in the android.support.v7.app package. These are in the appcompat-v7 library; to include it, make sure the Android Support Repository is installed in your SDK Manager, and put this in your module's build.gradle dependencies block:

    compile 'com.android.support:appcompat-v7:+'

Upvotes: 1

Related Questions