File clashes during Luci Build

We are getting a file clash issue whil build LuCi package. Any suggestions on clearing the same.

Collected errors:
 * check_data_file_clashes: Package luci-mod-admin-full wants to install file /home/openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/root-mvebu/usr/lib/lua/luci/controller/admin/index.lua
        But that file is already provided by package  * luci-base
 * check_data_file_clashes: Package luci-mod-admin-full wants to install file /home/openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/root-mvebu/usr/lib/lua/luci/controller/admin/uci.lua
        But that file is already provided by package  * luci-base
 * opkg_install_cmd: Cannot install package luci.
 * check_data_file_clashes: Package luci-mod-admin-full wants to install file /home/openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/root-mvebu/usr/lib/lua/luci/controller/admin/index.lua
        But that file is already provided by package  * luci-base
 * check_data_file_clashes: Package luci-mod-admin-full wants to install file /home/openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/root-mvebu/usr/lib/lua/luci/controller/admin/uci.lua
        But that file is already provided by package  * luci-base
 * opkg_install_cmd: Cannot install package luci-mod-admin-full.
make[2]: *** [package/install] Error 255
make[1]: *** [/home/openwrt/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/stamp/.package_install] Error 2
make: *** [world] Error 2

This suggests that you've got two packages specified that seem to have different files to install at the same place. Generally one or the other needs to be removed. The conflict detection isn't "perfect" as it may be that the same, exact file is provided by both packages.

The specific case is puzzling, as luci-mod-admin-full requires luci-base

I have much required code in indexlua underluci-base. Can I go ahead and delete the index.lua and the uci.lua from the luci-mod-admin-full? Any adverse effects of this?

I have tried to uncheck the luci-mod-admin-full, but "make menuconfig" does not allow to deselect "luci-mod-admin-full"

Any other options to resolve the file clash issue?

Go here luci-mod-admin-full and hit ?

You'll see a list of extra packages that select or deselect this...

See if your running any of those and try disabling them for a build, one by one.

Make sure you have AUTOREBUILT selected.

Try a fresh clone AND/OR ./feeds update and install + git pull

If none of those solve it then you will need to explain more about what you've done...

relevant?

Have you mentioned what version you have checked out? relevant?

Sounds like you have a modified LuCI source repo with some additions from you (or from somebody else). Likely those modifications have been targeting an older/newer version of LuCI, and as LuCI has changed since the authoring of those changes, you need to modify your own code bits accordingly. As nobody else knows what you have done, it is up to you to solve the conflict.

(your previous posts have already indicated that you are messing up with non-standard stuff like Is LuCI 19.07 stable version and can it be used along with OpenWRT 18.06.02 stable version? , so if you ask for help, please clearly clarify what are non-standard parts...)