我在将应用程序加载到手机时遇到问题

时间:2019-04-25 13:26:46

标签: build deprecation-warning

我收到以下错误:

15:06:28:正在执行任务“构建” ...

执行任务:[构建]

  

配置项目:app   无法加载文件C:\ Users \ Gabriel.android \ repositories.cfg。   在C:\ Users \ Gabriel \ AppData \ Local \ Android \ Sdk \ licenses中检查Android SDK Platform 28软件包的许可证   接受Android SDK Platform 28软件包的许可证。   准备“安装Android SDK Platform 28(修订:6)”。   准备“安装Android SDK平台28(修订:6)”。   在C:\ Users \ Gabriel \ AppData \ Local \ Android \ Sdk \ platforms \ android-28中安装Android SDK Platform 28   完成“安装Android SDK Platform 28(修订:6)”。   完成“安装Android SDK Platform 28(修订:6)”。

     

任务:app:preBuild截止日期   任务:app:preDebugBuild UP-TO-DATE   任务:app:compileDebugAidl NO-SOURCE   任务:app:compileDebugRenderscript NO-SOURCE   任务:app:checkDebugManifest截止日期   任务:app:generateDebugBuildConfig更新日期   任务:app:prepareLintJar截止日期   任务:app:generateDebugSources更新日期   任务:app:javaPreCompileDebug截止日期   任务:app:mainApkListPersistenceDebug截止日期   任务:app:generateDebugResValues截止日期   任务:app:generateDebugResources最新   任务:app:mergeDebugResources最新   任务:app:createDebugCompatibleScreenManifests最新   任务:app:processDebugManifest截止日期   任务:app:processDebugResources   任务:app:processDebugResources失败

失败:构建失败,并出现异常。

  • 出了什么问题: 任务':app:processDebugResources'的执行失败。

      

    Android资源链接失败   C:\ Users \ Gabriel \ AndroidStudioProjects \ HappyBirthday \ app \ src \ main \ res \ mipmap-anydpi-v26 \ ic_launcher.xml:3:AAPT:错误:resource drawable / ic_launcher_background(aka com.example.android.happyBirthday:drawable / ic_launcher_background)找不到。

    C:\ Users \ Gabriel \ AndroidStudioProjects \ HappyBirthday \ app \ src \ main \ res \ mipmap-anydpi-v26 \ ic_launcher_round.xml:3:AAPT:错误:resource drawable / ic_launcher_background(aka com.example.android。找不到happyBirthday:drawable / ic_launcher_background。

    错误:链接文件资源失败。

  • 尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。使用--scan运行以获取完整的见解。

  • https://help.gradle.org

  • 获得更多帮助

在此版本中使用了不推荐使用的Gradle功能,使其与Gradle 6.0不兼容。 使用“ --warning-mode all”来显示各个弃用警告。 参见https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings

在4分52秒内失败 11个可执行的任务:1个已执行,10个最新 15:11:23:任务执行完成了“构建”。

0 个答案:

没有答案
相关问题