• Register
0 votes
455 views

Problem :

Using new android studio with new 3.0.0 Gradle pluging. When building some warning occurred as follows:

registerResGeneratingTask is deprecated, useregisterGeneratedFolders(FileCollection)
6 5 3
7,540 points

1 Answer

0 votes

Solution :

Gradle plugins are the reason behind it. It is just warning and not the error so removing the plugins that are reason behind the issue is unnecessery. If you can't fix it, avoid it as long as it is just warning right now and not removed From what I can tell as of the main reason, it is understood by refreshing the Gradle file however in the Spoon library, it was fixed by changing a line identified with TestVariant by following the subjects in the Gradle plugin 3.0.0 migration guide.The whole thing is secured by the devloper docs, yet here's a portion of the stuff I believe is important depending on the pull requests done on projects where it's been an issue: Aside updating the Gradle version and plugin, you additionally need to add to your google() repo under repositories. compile is currently implementation or api, yet implementation is the recomended one. provided is compileOnly and apk is runtimeOnly androidTestCompile has become androidTestImplementation, and testCompile - > testImplementation Just in case that if you use flavors, you need to also use flavor dimensions.For build types, you need to include the fallbacks for case there is a library that doesn't have that build type. These are defined in the profile block under the android block. If not done as of now, the gradle plugin must be defined first. if you don't have some other classpath dependencies, is not an issue.But if you realy want to  do then please make sure that the gradle plugin is defined first.

9 7 4
38,600 points

Related questions

0 votes
1 answer 80 views
80 views
Problem : I have updated my Android Studio to 3.0 but now facing the lot of issues.. So now stopped on the point with below issue: Could not resolve all files for configuration ':applib:_lintClassPath'. > Could not find com.android.tools.lint:lint-gradle:26.1.0-alpha01. ... project :applib I am currently using latest gradle version as: "gradle-4.2.1-all.zip". Does anyone know what my issue can be?
asked Dec 17, 2019 alecxe 7.5k points
0 votes
1 answer 51 views
51 views
Problem : I have the Android Studio Beta. I have created the new project with compiling my old modules but when I tried launching my app it did not launch and it gave me the below message: Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. com ... merge dex But I am unable to know how to fix above error. I researched on this for hours but with no success.
asked Jan 31 jwilliam 3.9k points
0 votes
2 answers 112 views
112 views
Problem : My android studio was getting build error while build execution as following: Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex"
asked Dec 4, 2019 alecxe 7.5k points
0 votes
1 answer 41 views
41 views
Problem : I am new to Android. Recently I have installed the Android studio 3.1.3 and it started giving me the dependencies error if tried to make the new project and tried to compile for the first time. “Unable to resolve dependency for ':app@debug/compileclasspath': could not resolve project”
asked Feb 18 mphil 2.3k points