Android Studio Gradle Already disposed Module

前端 未结 17 1602
一个人的身影
一个人的身影 2020-12-04 04:58

I have installed Android Studio version 1.0.1. I have imported my projects from eclipse and it works fine. Then I deleted a module and reimported it into my Android Studio p

17条回答
  •  遥遥无期
    2020-12-04 05:49

    Had a similar issue when working with RN components in my Android project and the only way to get around this issue was to ignore the gradle project.

    To do this:

    • Click on the gradle tab on the right hand side of AS
    • Right click the gradle module which is causing an issue
    • Click "Ignore Gradle Project"
    • Perform a gradle sync which should be successful now
    • If you need this module perform the 4 above steps again, this time when right click on the gradle project it'll show "Unignore Gradle Project"
    • Gradle sync should now work

    No idea what causes this but I've had this happen to me when using React Native Maps.

    Note: If you're still having issues following this. Try to refresh the gradle project which was causing issues.

提交回复
热议问题