Search code examples
androidmavengradleandroid-gradle-pluginandroid-architecture-lifecycle

Could not resolve all files for configuration


I just implemented the Android Architecture Library in my Android project, everything works fine when i build the app gradle module, but i can't test it on a physical/emulator device this shows up on the message gradle build

Error:Could not resolve all files for configuration ':app:debugAnnotationProcessorClasspath'.

Could not resolve android.arch.lifecycle:compiler:1.0.0. Required by: project :app No cached version of android.arch.lifecycle:compiler:1.0.0 available for offline mode. No cached version of android.arch.lifecycle:compiler:1.0.0 available for offline mode. No cached version of android.arch.lifecycle:compiler:1.0.0 available for offline mode. No cached version of android.arch.lifecycle:compiler:1.0.0 available for offline mode. No cached version of android.arch.lifecycle:compiler:1.0.0 available for offline mode.

I already have my offline mode unchecked in Settings and Power saving mode already unchecked.

Please help me out.


Solution

  • Stupid mistake but i forgot to uncheck my offline gradle in settings.