Can't run nor debug project but gradle build+install work

后端 未结 11 1334
梦毁少年i
梦毁少年i 2020-12-07 00:32

After update to Android studio 3.6 Canary11 (macOS) I cannot run nor run Debug variants of my project (Release variants working fine).

When I try to run the project

相关标签:
11条回答
  • 2020-12-07 01:18

    try build.gradle

    android {
        packagingOptions {
        pickFirst  'firebase-abt.properties'
        }
    }
    
    0 讨论(0)
  • 2020-12-07 01:20

    I faced somehow similar issue on Android Studio 3.6.3v

    Entry name 'kotlin/collections/MapWithDefault.kotlin_metadata' collided
    

    I resolved the issue by:

    1. Delete build folder under /app
    2. Clean project
    3. Rebuild project

    If still doesn't work, do the following:

    File > Invalidate Caches/Restart
    
    0 讨论(0)
  • 2020-12-07 01:23

    If anyone is still facing this issue, try this -

    1. Step 1
    File > Invalidate Caches/Restart
    1. Step 2
    Rebuild Project
    0 讨论(0)
  • 2020-12-07 01:24

    I had a similar issue with Android Studio 3.6 Canary 12 on Mac, I could build different build variants but had this error when I tried to Generate a signed apk:

    Entry name 'kotlin/collections/MapWithDefault.kotlin_metadata' collided
    

    I had to delete the .build folder as well as the folders where I build my build variant.

    0 讨论(0)
  • 2020-12-07 01:25

    I just had a similar issue - my generating a debug build variant kept failing with an error about "Entry name res/layout/test_toolbar.xml collided". There is no "test_toolbar_xml" anywhere in my project. I first deleted all build directories and tried - same result. then I went in and deleted caches under .gradle\5.6.4, and under .idea folders. Tried again and this time I was able to build.

    Building a "release" variant worked every time.

    0 讨论(0)
提交回复
热议问题