Getting Duplicate file error when compiling project in Android Studio

Hello all,

I am using Android-Studio to run cocos2d-x project in android.
When i change the below things in in build.grandle:
android {
compileSdkVersion 23 //from 22
buildToolsVersion “23.0.3” //from 22.0.1

defaultConfig {
    applicationId "com.some.testProject"
    minSdkVersion 19 //from 14
    targetSdkVersion 23 //from 22
    versionCode 1
    versionName "1.0"
}

i’m getting this following error logs.

Unknown source file : /Volumes/workspace/…/…/proj.android-studio/app/build/intermediates/res/merged/debug/mipmap-hdpi-v4/ic_launcher.png: error: Duplicate file.
Unknown source file : /Volumes/workspace/…/…/proj.android-studio/app/build/intermediates/res/merged/debug/mipmap-hdpi/ic_launcher.png: Original is here. The version qualifier may be implied.

:PaperToss:processDebugResources FAILED
:PaperToss:processDebugResources (Thread[Task worker,5,main]) completed. Took 0.045 secs.
:libcocos2dx:processDebugResources (Thread[main,5,main]) completed. Took 0.067 secs.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:PaperToss:processDebugResources’.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/Users/hackintosh/Library/Android/sdk/build-tools/23.0.3/aapt’’ finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

Please help we out.

Regards,
Sriby7