【问题标题】:no aar file generated after building spotify wrapper with gradle使用 gradle 构建 spotify 包装器后没有生成 aar 文件
【发布时间】:2015-06-22 20:50:01
【问题描述】:

我正在尝试从 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

除了最后一步,一切正常。该过程没有创建 build/outputs/aar 目录。我看到的只是我的 app\build 目录中的 3 个文件夹:

APK

lint-results-release-fatal_files

日志

就是这样。步骤来自:

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

【问题讨论】:

    标签: android api gradle spotify aar


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

      我也被这个问题困住了。如果您的 android 目录中有 spotify web api 并且构建文件不会生成 aar 文件,只需从将提供 SDK 位置的 android 项目目录的根目录复制您的 local.properties 文件。未能执行此操作并从 web api 目录运行上述命令将导致 git 尝试重新下载 SDK 以编译该文件

      【讨论】:

        猜你喜欢
        • 2021-11-16
        • 2016-01-17
        • 1970-01-01
        • 1970-01-01
        • 2015-06-13
        • 2014-11-04
        • 1970-01-01
        • 2020-04-13
        • 2016-01-16
        相关资源
        最近更新 更多