java - I'm having issues importing ViewPager with Android Studio? -


i'm trying import project android studio. i'm getting weird errors.

information:java: errors occurred while compiling module 'library' information:compilation completed 100 errors , 5 warnings in 26 sec error:(31, 31) java: package android.support.v4.view not exist /users/clxxxii/downloads/jakewharton-viewpagerindicator-8cd549f/library/src/com/viewpagerindicator/titlepageindicator.java 

in class titlepageindicator, these imports aren't working.

import android.support.v4.view.motioneventcompat; import android.support.v4.view.viewconfigurationcompat; import android.support.v4.view.viewpager; 

android studio recognizes android.support.v4.view. not viewpager, viewconfigurationcompat nor motioneventcompat. know problem be?

///////

apply plugin: 'com.android.application'  dependencies {     compile filetree(dir: 'libs', include: '*.jar')     compile project(':android-sdks:extras:google:google_play_services:libproject:google-play-services_lib')     compile project(':downloads:android group chat app using sockets:android-websockets-master')     compile project(':downloads:jakewharton-viewpagerindicator-8cd549f:library')     compile project(':downloads:basegameutils')     compile project(':downloads:polljoy-android-master:polljoysdk') }  android {     compilesdkversion 22     buildtoolsversion "22.0.1"      sourcesets {         main {             manifest.srcfile 'androidmanifest.xml'             java.srcdirs = ['src']             resources.srcdirs = ['src']             aidl.srcdirs = ['src']             renderscript.srcdirs = ['src']             res.srcdirs = ['res']             assets.srcdirs = ['assets']         }          // move tests tests/java, tests/res, etc...         instrumenttest.setroot('tests')          // move build types build-types/<type>         // instance, build-types/debug/java, build-types/debug/androidmanifest.xml, ...         // moves them out of them default location under src/<type>/...         // conflict src/ being used main source set.         // adding new build types or product flavors should accompanied         // similar customization.         debug.setroot('build-types/debug')         release.setroot('build-types/release')     } } 

your gradle.build file missing these:

dependencies {     compile 'com.android.support:support-v4:22.0.0'     compile 'com.android.support:appcompat-v7:22.0.0' } 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -