Android Studio error and 9-patch

I created 9 patch images using the Android Studio function "create a file with 9 patches."

Now Android studio reports that there is a “duplicate” resorption error, since I have image.png and image.9.png.

If image.png is deleted (after cleaning and re-executing the project), I get this error:

Error:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:

Error:Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: 

Do you know how to solve this problem?

+4
source share
2 answers

First of all, as suggested, try the invalid cache. To do this: click File> Invalid Cache / Reboot.

lib, . lib . ? , lib.

: : > . app .

, Dex 65K Android ( , ). multiDexEnabled true build.gradle > defaultConfig

defaultConfig {        
    // Enabling multidex support.
    multiDexEnabled true
}

,

dexOptions{
    preDexLibraries = false
    javaMaxHeapSize "4g"     // 4GB
}
0

, ,

0

Source: https://habr.com/ru/post/1663735/


All Articles