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

后端 未结 15 2133
野的像风
野的像风 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 12:01

    I added debug under buildTypes in the gradle file and missed a comma after "API_URL":

    not working:

    buildTypes {
        ...
        debug {
            buildConfigField "String", "API_URL" "\"http://myapi.com/\""
        }
    }
    

    working:

    buildTypes {
        ...
        debug {
            buildConfigField "String", "API_URL", "\"http://myapi.com/\""
        }
    }
    

    good luck!

提交回复
热议问题