Reputation: 1184
I have a project that is working perfectly on Android Studio 2.1 but when I updated to Android Studio 2.2 it stopped resolving android.support.v13.app.FragmentPagerAdapter
I don't know why
I tried the project on Android Studio 2.1 again and it still working fine.
I tried to import settings from old to new Studio but this didn't solve it.
What's preventing Android Studio 2.2 from resolving android.support.v13.app.FragmentPagerAdapter
?
I have already tried :
1、File->Invalidata Caches/Restart->Invalidata and Restart
2、Build->Make Module
3、Build->Make Project
4、Build->Clean Project
5、Build->Rebuild Project
I saw this question android studio 2.2.1 cannot resolve symbol * but I already have android studio 2.2 preview 2 and it didn't solve the issue.
This is my build.grade file for the app module :
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
repositories {
flatDir {
dirs 'libs'
}
}
android {
lintOptions {
abortOnError false
}
}
compileSdkVersion Integer.parseInt(project.COMPILE_SDK_VERSION)
buildToolsVersion project.BUILD_TOOLS_VERSION
defaultConfig {
applicationId 'club.androidy.callcontrolfree'
minSdkVersion project.MIN_SDK
targetSdkVersion project.TARGET_SDK_VERSION
versionName project.VERSION_NAME
versionCode Integer.parseInt(project.VERSION_CODE)
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
signingConfig signingConfigs.release
}
}
productFlavors {
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile(name:'DuappsAd_CW_Online_v1.0.4.2', ext:'aar')
compile 'com.github.codechimp-org.apprater:library:1.0.+'
compile project(':SlidingTab')
compile 'com.ogaclejapan.arclayout:library:1.0.1@aar'
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'
compile 'com.google.android.gms:play-services-ads:9.0.0'
compile 'com.google.android.gms:play-services-analytics:9.0.0'
compile 'com.android.support:support-v4:23.3.0'
compile 'com.android.support:design:23.3.0'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true;
}
compile 'com.android.support:cardview-v7:23.3.0'
}
Upvotes: 2
Views: 2345
Reputation: 30985
it stopped resolving
android.support.v13.app.FragmentPagerAdapter
That's because you have the v4 support library, not v13:
compile 'com.android.support:support-v4:23.3.0'
Change your imports from android.support.v13.app.FragmentPagerAdapter
to android.support.v4.app.FragmentPagerAdapter
– or –
Change your library to compile 'com.android.support:support-v13:23.3.0'
Upvotes: 3