Android Studio Google preconditions

0

I'm starting in Android studio making small applications and trying new things. Until last night, Android Studio worked correctly and I did not have any problem, but today, when I turn on my computer and want to open my project it shows me the following error:

  

Unable to load class 'com.google.common.base.Preconditions'.

I already tried reinstalling Android Studio and doing the following:

  • Clean project y Build project (Without any result, it still shows the same error)

  • See if I'm working in offline mode (No result, since the "Offline work" box was disabled

  • Invalidate Cache / Subtract (Did nothing, follow the problem)

    • When you delete the ./gradle folder, it is not automatically downloaded again or by touching the "Re-Download dependencies and sync projects" option

I do not know how to solve it, look in forums and others but I can not get results and I do not know the cause of this problem if a couple of hours ago everything worked fine and there were no changes in my computer.

Greetings

    
asked by Felipe Otero 07.09.2018 в 16:32
source

1 answer

0

Remove the .gradle directories in both your personal directory and the top level of your project. Gradle cache addresses are not affected by the "Clear caches and restart" option.

Then Build > Clean Project

    
answered by 08.09.2018 в 01:26