Jordy
Jordy

Reputation: 1804

Chrome custom tabs classes not found in code

Today was the first time I was trying to setup chrome tabs in an Android project. I included the required compile:

compile 'com.android.support:customtabs:23.0.1'

No gradle errors / build errors afterwards but in code the com.android.support.customtabs namespace was not available.. I already tried changing the version to 23.0.1 or the newer 23.1.0 but all changes had the same result. I then looked at my sdk->android folders to see if the customtabs library was actually being downloaded and it was. All the other support namespaces that I'm using are working fine.. Any clue on what could be going wrong here?

Upvotes: 2

Views: 2240

Answers (1)

Jordy
Jordy

Reputation: 1804

I got it working again => just clean / rebuild didn't work so what I had to do to solve it:

=> goto SDK manager => delete the (complete) android support library and afterwards reinstall the package.

This fixed the problem so I could not check if @andreban's "file->invalidate caches" also fixes the problem.

Upvotes: 1

Related Questions