App not installed error while sideloading and Install failed UID changed via adb [Not rooted] I am having hard time getting an app installed since none sideloading nor adb install work...since I dont have root i cant delete the app's data folder from the data/data folder..

seems delete that folder will easily fix it but I am wondering is there any other way.

Error via adb install  is Install failed UID changed
I dont wanna root is there any fix for this.....

BTW my phone is Moto g
For rooted devices:

Run the below command 

adb rm -rf /data/data/&lt;your.package.name&gt;


For non-rooted device:


Change the ApplicationId of the app. Refer this link to change
ApplicationId.
Build and install the app. App will install successfully because it is treated as new app.
Now uninstall this app. Which will clear the data.
Now change the ApplicationId to the previous one.
Build and install. Magic.. It will install.