Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试添加 com.github.sardine 库并用它构建我的应用程序。它失败并出现以下错误
Error:(3, 28) error: package org.apache.tools.ant does not exist
需要解决方案。
将以下行添加到 build.gradle(模块:app)中的依赖项会有所帮助。
dependencies { ... compile group: 'org.apache.ant', name: 'ant', version: '1.8.2' }
将其添加到您的build.gradle(Module: app)
android { useLibrary 'org.apache.http.legacy' }