Skip to content
Advertisement

Type com.example.myhouse.MainActivity is defined multiple times

Error while compiling the code.

Type com.example.myhouse.MainActivity is defined multiple times: C:UsersHPAndroidStudioProjectsmyHouseappbuildtmpkotlin-classesdebugcomexamplemyhouseMainActivity.class, C:UsersHPAndroidStudioProjectsmyHouseappbuildintermediatesjavacdebugclassescomexamplemyhouseMainActivity.class

Gradle file

JavaScript

Advertisement

Answer

Just delete build folder of appmodule and Rebuild the project!
or
Try to invalidate cache and restart

This will fix the issue!.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement