daydr3am3r
daydr3am3r

Reputation: 954

Gradle sync prevents app from running

I am trying to move a project folder from one location to another and change the folder name.

For various reasons version control was not possible so I have the following structure: MyApp\Version 1.xx\ and in this folder I have more folders named 1.0.1, 1.0.2 etc.

I also have another folder called MyApp that I want to copy into MyApp\Version 1.xx\ and rename it to 1.0.5.

Unfortunately, I am stuck with the following message: "Gradle files have changed since last project sync".

If I try to sync, the message pops up again in a few seconds. If I try to build/debug the project, I get this:

enter image description here

I also tried to create a new empty project with the same name into the desired folder and add the layouts and classes there but if I try to run the app I get these:

enter image description here

I tried Clean, Invalidate Cache and Restart, deleting and recreating Gradle files as well as most of the solutions provided around here, without any luck.

Any ideas on how to fix this issue?

Upvotes: 0

Views: 57

Answers (1)

halfer
halfer

Reputation: 20487

(Posted on behalf of CommonsWare, from the comments).

If I try to sync, the message pops up again in a few seconds. If I try to build/debug the project, I get this"

Try a command-line build, and see if that gives you anything more to go on. Otherwise, for that project (module? whatever), delete your .gradle/, .idea/, and build/ directories, plus .iml files, and try re-importing into Android Studio.

Upvotes: 1

Related Questions