New android studio flavor

Viewed 2659

I just updated my android studio and ran into the following error.

Error:java.lang.RuntimeException: Unexpected scopes found in folder 'D:\****\****\****\app\build\intermediates\transforms\dexMerger\dev_demo\debug'. Required: EXTERNAL_LIBRARIES. Found: EXTERNAL_LIBRARIES, PROJECT, SUB_PROJECTS

I tried closing, cleaning and building but it won't work.

Anybody encountered the same problem ?

4 Answers

Try This:

  1. Delete the .gradle folder from the project folder
  2. In Android Studio go to File>Project Structure>Project and change the Gradle Version to the latest version (4.4).

enter image description here

Related