Type androidx.appcompat.resources.R$dimen is defined multiple times

后端 未结 7 1454
轻奢々
轻奢々 2020-12-17 19:50

We have a React Native app where after upgrading to Android Studio 3.6.1 and Gradle plugin 3.6.1 we are seeing this compilation error:

Type androidx.appcompa         


        
7条回答
  •  粉色の甜心
    2020-12-17 20:29

    My errors were similar, with a "is defined multiple times" message.

    I solved it by downgrading the Gradle plugin to 3.5.0, running the app — or at least trying to — then upgrading to Gradle plugin 3.6.2 again.

    I am not sure why, but this seemed to have cleared some caches or dependencies I was not aware of.

    Removing ~/.gradle or android/.gradle did not help.

提交回复
热议问题