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

前端 未结 9 2377
刺人心
刺人心 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:15

    Update your project gradle file to use gradle version 1.3.1.

    classpath 'com.android.tools.build:gradle:1.3.1'
    

    Also try adding codehause repo.

    repositories {
            mavenCentral()
            maven{
                url 'http://repository.codehaus.org'
            }
        }
    

提交回复
热议问题