Meituan-Dianping / Meituan-Dianping/Robust

编译报错,gradle3.2.1 debug版本可以的,release版本报错了 gradle

Open
#310 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.5k
Forks
806
PR merge metrics
No merged PRs in 30d

Description

异常类型:编译异常

手机型号:

手机系统版本:

Robust版本:0.4.82

Gradle版本:3.2.1

系统:window

个人分析: 看robust的源码是使用gradle2.1.0,配置说明是2.1.0+,include 3.0, 然而个人的是3.2.1; 是不是我本地gradle版本太高 导致不兼容了?

堆栈/日志:(没有添加 --stacktrace,先把当前log附上)
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':robust:packageRelease'.

Cannot cast object 'com.android.build.gradle.internal.scope.BuildArtifactsHolder$FinalBuildableArtifact@b88330b' with class 'com.android.build.gradle.internal.scope.BuildArtifactsHolder$FinalBuildableArtifact' to class 'org.gradle.api.file.FileCollection'

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2s

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the release build for Robust 0.4.82 with Gradle 3.2.1 and rerun it with --stacktrace. Inspect the :robust:packageRelease task and the reported BuildArtifactsHolder/FileCollection cast, then compare the supported Gradle configuration. Done means identifying the compatibility cause and confirming a successful release build or documenting the required versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.