我正尝试从大胆的类(class)开始开发Spotify Streamer应用程序。但是在执行以下步骤时遇到了麻烦:
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
除最后一步外,一切正常。该过程未创建build / outputs / aar目录。我所看到的只是我的app \ build目录中的3个文件夹:
apk
lint-results-release-fatal_files
logs
就是这样。步骤来自:
https://github.com/kaaes/spotify-web-api-android/blob/master/README.md
最佳答案
问题解决了。我正在从应用程序文件夹中运行“。\ gradlew assemble”命令。从克隆的git文件夹('spotify-web-api-android')中运行相同的命令成功创建了.aar文件
关于android - 用gradle构建Spotify包装器后没有生成任何aar文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30989573/