I\'m using Cmake to try to build a project for Eclipse. When I try running Cmake, I get the following error:
Error: could not load cache
Error: Batch build s
The solution that worked for me using VisualStudio 2017 was choosing: CMake --> Cache --> Generate (from the top menu)
Remove the CMakeCache.txt and try again. You probably had a bad cmake setup.
I removed the .cxx
and other ide-generated files to the recycle.bin, except app.iml
. Then I restarted Android Studio, and eventually it worked fine.
I ran into this recently using JetBrains CLion and the above instructions were helpful but not directly, I was able to reload the project using the "cog" drop down in the CMake
tab:
The most realistic answer and personal experienced answer is
Then do this:
Run -> Clean
Run -> Build
And your project will be working all fine