How to fix ERROR: No signature of method: build_ap86oam3dut3pxce3x49rdtma.android()?

后端 未结 15 2447
野的像风
野的像风 2021-02-12 11:27

ERROR: No signature of method: build_ap86oam3dut3pxce3x49rdtma.android() is applicable for argument types: (build_ap86oam3dut3pxce3x49rdtma$_run_closure1) values: [build_ap86oam

15条回答
  •  半阙折子戏
    2021-02-12 11:55

    I had the same error message until I commented out everything in the android plugin except the compile sdk version, trying to get back to a successful build config.

    android {
        compileSdkVersion 23
    /*
        ...
    */
    }
    

    Then, I started uncommenting things until I narrowed the problem down to using the following incorrectly.

    ProductFlavors {
      ...
    }
    

    I'm not sure if you're using the same block, but at the moment, I'm leaving it commented out because I'm not sure it's needed. Once I got rid of it though, I was receiving other errors about sdk root dir location, so I was able to fix those.

    I hope this helps!

提交回复
热议问题