Gradle failed to sync with 'unable to find optional library'

前端 未结 9 2385
刺人心
刺人心 2020-12-01 18:24

I had to reinstall my system and today I get this error in Android Studio when I try to sync with gradle:

Warning: Unable to find optional library: org.apach         


        
9条回答
  •  暖寄归人
    2020-12-01 19:14

    To save time 2 solutions are best and works for me.

    Solution 1 :

    open your android sdk manager and reinstall API 23 (remove and install again).

    Solution 2 :

    Download this file which contain optional.json file extract and move optional.json to :

    C:\Users\\AppData\Local\Android\sdk\platforms\android-23\optional

提交回复
热议问题