0

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?

5
  • what do you mean by import namespace ? Commented May 7, 2017 at 11:02
  • I edited my post Commented May 7, 2017 at 11:08
  • Have you injected required jars as dependency for the same Commented May 7, 2017 at 11:11
  • Yes. Is it not jar(s). I'm imported my module Commented May 7, 2017 at 11:13
  • stackoverflow.com/questions/29081429/… Commented May 16, 2018 at 12:01

2 Answers 2

3

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

like include 'abc', 'xyz'

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

Sign up to request clarification or add additional context in comments.

4 Comments

Thanks, but my library added to settings.gradle. (include ':app', ':library', ':audiorecordlibrary') I tried Invalidate Caches/Restart but not resolved
Invalidate Caches/Restart and refresh dependency
I tried link solutions later :(
1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.