IndexNotReadyException - Android Studio

后端 未结 5 707
鱼传尺愫
鱼传尺愫 2020-12-08 04:08

While changing the values of a widget in properties tab, AndroidStudio keeps on throwing IndexNotReadyException. But afte

相关标签:
5条回答
  • 2020-12-08 04:13

    Happens because of the background indexing processes.

    When the IDE is indexing, if we try to change the values in properties tab, then IndexNotReadyException is thrown.

    Wait till indexing is complete.

    Hope Google fixes this in AndroidStudio's next release!

    0 讨论(0)
  • 2020-12-08 04:18

    I faced the same problem and found solution according to this, I have changed the API level 22 to 21, problem solved.

    API Level for XML layout was set **Automatically Pick Best ** which was API 22

    enter image description here

    And I change this API 22 to API 21:

    enter image description here

    and the exception removed.

    Hope this help. Thanks

    0 讨论(0)
  • 2020-12-08 04:18

    when that happend, run gradle method, then incremental builds are rebuild and indexing is restarted:

    task _deleteIncrementals << {
        def dirName = new File("${rootDir}/$project.name/build/intermediates/builds/debug/")
        dirName.deleteDir()
    }
    
    0 讨论(0)
  • File-> Invalidate Cache and Restart

    This will stop the old indexing process and start a new one.

    After that wait for indexing, and let that project build.

    0 讨论(0)
  • 2020-12-08 04:38

    If you have tried opening the project built in esclipse from default Open Project option from Android Studio, try Importing the project and open it.

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