question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gradle sync failed: No signature of method: com.android.build.gradle.internal.scope.VariantScopeImpl.getMergeAssetsTask() is applicable for argument types: () values: []

See original GitHub issue

问题详细描述 Detailed description of the problem

复现问题步骤 Steps to reproduce the problem

  1. Followed as https://github.com/Qihoo360/RePlugin/wiki/快速上手

其它重要信息 Other important information

classpath 'com.android.tools.build:gradle:3.2.0-beta05'
classpath 'com.qihoo360.replugin:replugin-host-gradle:2.2.4'

implementation 'com.qihoo360.replugin:replugin-host-lib:2.2.4'

gradle version 4.6

Android API Version:27

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
a562536056commented, Sep 8, 2018

希望360官方能够快点解决这个问题,现在项目提示gradle mininum supported gradle version是4.6 而replugin又在4.6上有这个问题。死胡同了。

4reactions
wanliLiucommented, Sep 28, 2018

问题详细描述 Detailed description of the problem

复现问题步骤 Steps to reproduce the problem

  1. Followed as https://github.com/Qihoo360/RePlugin/wiki/快速上手

其它重要信息 Other important information

classpath 'com.android.tools.build:gradle:3.2.0-beta05'
classpath 'com.qihoo360.replugin:replugin-host-gradle:2.2.4'

implementation 'com.qihoo360.replugin:replugin-host-lib:2.2.4'

gradle version 4.6

Android API Version:27

Android build tool gradle 3.2.0做了相关调整,修改项目中的: 1. variant.getVariantData().getScope().getGenerateBuildConfigTask().name 为: variant.getVariantData().getTaskContainer().getGenerateBuildConfigTask().name

2.variant.getVariantData().getScope().getMergeAssetsTask().name 为 variant.getVariantData().getTaskContainer().getMergeAssetsTask().name

就可以了,可以用我自己的地址 maven{url “https://dl.bintray.com/soli/maven”}

然后所有的版本改成:2.3.1就可以用了

Read more comments on GitHub >

github_iconTop Results From Across the Web

build-system/gradle-core/src/main/groovy/com/android/build ...
* Returns a collection of buildables that creates native object. *. * A buildable is considered to be any object that can be...
Read more >
RePlugin - Browse /v2.3.2 at SourceForge.net
Gradle sync failed : No signature of method: com.android.build.gradle.internal.scope.VariantScopeImpl.getMergeAssetsTask() is applicable for argument types: ...
Read more >
360插件化踩坑记录(一),RePlugin无法Sync成功,No signature of ...
No signature of method: com.android.build.gradle.internal.scope.VariantScopeImpl.getMergeAssetsTask() is applicable for argument types: () values: [].
Read more >
android studio编译项目提示方法未签名 - 简书
Gradle sync failed : No signature of method: com.android.build.gradle.internal.scope.VariantScopeImpl.getMergeAssetsTask() is applicable for ...
Read more >
JVM内存结构--新生代及新生代里的两个Survivor区(下一轮S0与 ...
1 2 3 [GC (Allocation Failure) [PSYoungGen: 7136K->632K(9216K)] ... 无法Sync成功,No signature of method: com.android.build.gradle.internal.scope_梦君DS的 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found