首页 文章

使用gradle构建spotify包装器后没有生成aar文件

提问于
浏览
1

我正在尝试从udacity的课程开始开发spotify流光应用程序 . 但是我在执行这些步骤时遇到了麻烦:

This project is built using Gradle:
Clone the repository: git clone https://github.com/kaaes/spotify-web-api-android.git
Build: ./gradlew assemble
Grab the aar that can be found in build/outputs/aar/spotify-web-api-android-0.1.0.aar and put it in the libs folder in your application

除了最后一步,一切都有效 . 该过程没有创建构建/输出/ aar目录 . 我看到的只是app \ build目录中的3个文件夹:

apk lint-results-release-fatal_files日志

就是这样 . 步骤来自:

https://github.com/kaaes/spotify-web-api-android/blob/master/README.md

2 回答

  • 0

    问题解决了 . 我从我的应用程序文件夹中运行“ . \ gradlew assemble”命令 . 从克隆的git文件夹('spotify-web-api-android')运行相同的命令,成功创建了.aar文件

  • 0

    我也一直坚持这个 . 如果你在android目录中有spotify web api并且构建文件没有生成aar文件,只需从你提供SDK位置的android项目目录的根目录中复制你的local.properties文件 . 如果不这样做并从web api目录运行上述命令将导致git尝试重新下载SDK只是为了编译该文件

相关问题