mehdi karimi
mehdi karimi

Reputation: 59

Android Studio import module cannot resolve symbol

I'm using latest Android Studio version (2.3.1) and I imported a library to my android studio project.
But when I want to import classes :

import com.mehdikarimi.PauseResumeAudioRecorder;      

returned error :

Cannot Resolve Symbol Module1

Is any suggestion to resolve this error?

Upvotes: 0

Views: 2311

Answers (2)

mehdi karimi
mehdi karimi

Reputation: 59

I resolved the problem first Invalidate Caches/Restart and closed Android Studio and deleted *.iml files and .idea folder then I added

    compile project(path: ':audiorecordlibrary');


To app dependencies

Upvotes: 1

AAryan
AAryan

Reputation: 20140

Check settings.gradle file, Is your module included there.

like include 'abc', 'xyz'

If yes try to Invalidate Caches/Restart and restart Android Studio.

Upvotes: 3

Related Questions