Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android error: package org.apache.tools.ant does not exist

I'm trying to add com.github.sardine library and build my app with it. It fails with the following error

Error:(3, 28) error: package org.apache.tools.ant does not exist

Solution is needed.

like image 499
Alexeev Valeriy Avatar asked Feb 20 '26 16:02

Alexeev Valeriy


1 Answers

Adding of the following line to dependencies in build.gradle (Module: app) helps.

dependencies {
...
    compile group: 'org.apache.ant', name: 'ant', version: '1.8.2'
}
like image 164
Alexeev Valeriy Avatar answered Feb 23 '26 10:02

Alexeev Valeriy