• Register
0 votes

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 91 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 76 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 178 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 57 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
0 votes
1 answer 502 views
Problem : Recently I have updated to Android Studio 3.1. But my project is not running anymore. I have searched for the solution all over the internet with zero positive results. Below is the error that I get in my Logcat: “Java.lang.noclassdeffounderror: ... sdk:4.+'     implementation 'com.parse:parsefacebookutils-v4-android:1.10.3@aar'     implementation 'com.commit451:PhotoView:1.2.4' }
asked Jan 30, 2020 jwilliam 3.9k points
0 votes
1 answer 2.2K views
Problem : I am getting below error while running my Jersey API in Tomcat 8.5.11 java.lang.illegalstateexception: injectionmanagerfactory not found.
asked Nov 1, 2019 peterlaw 6.9k points
0 votes
1 answer 9 views
I am trying to obtain the latitude and longitude value from the address using PHP.
asked Sep 25, 2020 Daniel Anderson 4k points