React native run-android do not updating modified code

后端 未结 21 3187
故里飘歌
故里飘歌 2020-12-13 06:02

I am using React native 0.52.0 and react-native-cli 2.0.1 on my Windows PC for android development. Despite all the changes i have made. When I run react-native run-an

21条回答
  •  一向
    一向 (楼主)
    2020-12-13 06:31

    This comment on github fixed my problem.

    @neonsec Cool, it do works !
    
    and I find a reason why this happened
    
    https://github.com/facebook/watchman/blob/4b98623e8fde17588f27494f3ae8f084b9b227d3/QueryableView.cpp#L48
    
    it looks like when a .git/index.lock or a .hg/wlock file exist, watchman will do nothing
    

    Solution: DELETE .git/index.lock file

    ## root app dir
    rm -f .git/index.lock
    

    otherlink: https://github.com/facebook/watchman/blob/4b98623e8fde17588f27494f3ae8f084b9b227d3/QueryableView.cpp#L48

提交回复
热议问题