1. Are you ready for the Galaxy S20? Here is everything we know so far!

Gradle DSL method not found: 'testImplementation()' when creating a separate test module

Discussion in 'Android Development' started by mcpixel, Aug 14, 2019.

  1. mcpixel

    mcpixel Newbie
    Thread Starter

    I do according to this instruction:https://developer.android.com/studio/test#use_separate_test_modules_for_instrumented_tests
    After I replaced apply plugin: 'com.android.library' with apply plugin: 'com.android.test' I got this error:
    Code (Text):
    1. ERROR: Gradle DSL method not found: 'testImplementation()'
    2. Possible causes:
    3. The project 'app5' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
    4. Upgrade plugin to version 3.4.2 and sync project
    5.  
    6. The project 'app5' may be using a version of Gradle that does not contain the method.
    7. Open Gradle wrapper file
    8.  
    9. The build file may be missing a Gradle plugin.
    10. Apply Gradle plugin
    11.  
    No actions that the studio offers naturally work. What to do?
     


  2. mcpixel

    mcpixel Newbie
    Thread Starter

    I wrote that the error is not in grandle! And I already saw these links and in them useless information that did not help me.
    You can take it and not be lazy and reproduce my steps, and then try to fix it and you will see that the problem is completely different. Either someone will already help me, or android studio is a garbage pit that you should not study
     
Loading...
Similar Threads - Gradle DSL method
  1. Pei Liu
    Replies:
    1
    Views:
    737
  2. Sathish Mohan
    Replies:
    0
    Views:
    242
  3. kannanthayumanavan
    Replies:
    5
    Views:
    1,523
  4. Mekhi Greene
    Replies:
    3
    Views:
    533
  5. ClintonBrits
    Replies:
    1
    Views:
    409
  6. mcpixel
    Replies:
    0
    Views:
    387
  7. jamesmark147
    Replies:
    3
    Views:
    939
  8. luwana50
    Replies:
    1
    Views:
    6,496
  9. esmond42
    Replies:
    3
    Views:
    9,752
  10. umtblbl
    Replies:
    2
    Views:
    2,739

Share This Page

Loading...