tirenweb
tirenweb

Reputation: 31749

Cannot resolve symbol FragmentCompat

I've just pasted this file in a new project, but I'm getting:

Cannot resolve symbol FragmentCompat;

any help?

Upvotes: 18

Views: 15875

Answers (2)

Volodymyr Yatsykiv
Volodymyr Yatsykiv

Reputation: 3211

You need to add support library v13.

compile 'com.android.support:support-v13:version_of_library'

Android also you need to add support library support-v4, because support-v13 depends on support-v4

More information you can find here

Upvotes: 28

QT-1
QT-1

Reputation: 996

In Android studio, right click on the project, select "Open Module Settings" and add support library v13 like so:

enter image description here

Upvotes: 11

Related Questions