• Register
0 votes

Problem :

I have got the following gradle FAILURE message:

..."Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0."

My Case description as follows:

·         I had attached to the project codebase the next libs:


    //(Required) Writing and executing Unit Tests on the JUnit Platform

testImplementation "org.junit.jupiter:junit-jupiter-api:5.2.0"

testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.2.0"

    // (Optional) If you need "Parameterized Tests"

testImplementation "org.junit.jupiter:junit-jupiter-params:5.2.0"

    // (Optional) If you also have JUnit 4-based tests

testImplementation "junit:junit:4.12"

testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.2.0"

testImplementation "io.mockk:mockk:1.8.5"

·         I had updated the gradle-wrapper.properties

distributionUrl=https....gradle-4.4-all.zip to 4.7-all

·         after all of that my gradle was built successfully

·         I had created the test class as follows:


 class TestClass {


internal fun testName() {

Assert.assertEquals(2, 1 + 1)



·         I had ran the test and got the FAILURE message as follows. 

Deprecated gradle features were used in this build, making it incompatible with gradle 5.0.

6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

 I also had the same error. I found that it was only happening when I tried to totally clean the RN caches and after that tried to create the release build.

If first I cleaned the caches and after that created a debug build and finally the  release build, then everything worked fine for me. Bit tricky but works.

Please Note: My clean command is as follows:

rm -r android/build ; rm -r android/app/src/release/res ; rm -r android/app/build/intermediates ; watchman watch-del-all ; rm -rf $TMPDIR/react-* ; npm start -- --reset-cache

9 7 4
38,600 points

Related questions

0 votes
2 answers 1K views
Problem : Currently I am using the Android Studio 2.1 but when I try to run it the suddenly my App shows me the below error Message my Gradle Build saying the following Exception is: org.gradle. ... .execute(SkipEmptySourceFilesTaskExec uter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.j ava:52)
asked Jan 31, 2020 jwilliam 3.9k points
0 votes
1 answer 528 views
Problem : I am facing the gradle error at the building from few days it just came randomly. My project depends on the multiple libraries and it built without the problems until few days (even with a libraries) ... .gradle.api.internal.changedetection.state.CacheLockReleasingTaskExecuter$1.run(CacheLockReleasingTaskExecuter.java:40) at org.gradle.internal.Factories$1.create(Factories.java:26)
asked Jan 30, 2020 jwilliam 3.9k points
0 votes
1 answer 3 views
Problem: website is offline no cached version of this page is available.
asked Feb 21 charles mathews 3.9k points
0 votes
2 answers 93 views
Problem : I have already replaced every occurrence of a compile by implementation in the project's build.gradle, but I am still facing below warning : “Warning: configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'” I also tried to look for a "compile" in a whole project but no match was found. So what is the cause of the warning?
asked Jan 30, 2020 jwilliam 3.9k points
0 votes
1 answer 721 views
Problem : When I try to build my app, I face follow error : Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. More than one file was found with OS independent path 'META-INF/LICENSE' When I try to add below code ... .LeakCanary.isInAnalyzerProcess(LeakCanary.java:145) at cn.sz.cyrus.wemz.TestApplication.onCreate(TestApplication.kt:32) Who knows how to solve this?
asked Jan 21, 2020 jwilliam 3.9k points
0 votes
1 answer 4 views
Problem : Getting error “You have exceeded the maximum transaction amount set by your bank”
asked 5 days ago Shovo210 3.9k points
0 votes
1 answer 5 views
Problem : Failed to instantiate one or more classes android studio
asked Feb 25 Shovo210 3.9k points
0 votes
1 answer 11 views
Problem: error: program type already present: android.support.design.widget.coordinatorlayout$behavior
asked Feb 19 Lucky Guy 1.4k points
0 votes
2 answers 61 views
Problem : I am facing the following issue while building my project. I haven't used any CoordinatorLayout in my project. I have just added it as a dependency in my build.gradle : I am currently using Android Studio 3.2 Canary 4. ... ..... /windows/Other/app/build/intermediates/transforms/dexBuilder/debug/304.jar Program type already present: android.support.design.widget.CoordinatorLayout$Behavior
asked Dec 5, 2019 alecxe 7.5k points
0 votes
1 answer 25 views
Problem:- hey, we are working on a student portal system and we need to test it.As we don't have professional QA So we would like to adopt QA responsibilities and skills.
asked Oct 2, 2020 SapperIt 1.2k points