• Register
0 votes
666 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

Please log in or register to answer this question.

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 127 views
127 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 4 views
4 views
Problem: I am stuck now .. need some suggestions .. please help me .. Note some input files use or override a deprecated api
asked Apr 26 Ifra 34.7k points
0 votes
1 answer 3 views
3 views
Problem: After updating my dependency versions in AndroidStudio3.1, I started getting the following error: Information:Gradle tasks [:app:assembleDebug] Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\Blabla\.gradle\caches\modules-2\files-2.1\com. ... my "multiDexEnabled true" and 'compile 'com.android.support:multidex:1.0.2' is added. What else can I do?
asked Apr 25 Humaira ahmed 50.7k points
0 votes
1 answer 2 views
2 views
Problem: Android studio was getting build error while build execution with following: Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge ... :recyclerview-v7:26.0.1' } } apply plugin: 'com.google.gms.google-services' Any solutions?
asked Apr 25 Humaira ahmed 50.7k points
0 votes
1 answer 72 views
72 views
Problem: could not resolve com.android.support:appcompat-v7:26.1.0.
asked Feb 22 Dan phillip 4.8k points
0 votes
1 answer 108 views
108 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, 2020 jwilliam 3.9k points
0 votes
2 answers 328 views
328 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 32 views
32 views
Problem could not find method google() for arguments [] on repository container.
asked Feb 9 charles mathews 5.5k points
0 votes
1 answer 95 views
95 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, 2020 mphil 2.3k points