Gradle fails with “Ambiguous method overloading for method java.io.File#

前端 未结 3 875
你的背包
你的背包 2021-02-03 21:54

When gradle building my project, I\'m getting this error:

FAILURE: Build failed with an exception.

  • Where:
    Build fi

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-03 21:56

    I'm doing this every day, creating local.properties by issuing following command (-p is path to my manifest file, -t is current target):

    android project update -p . -t android-19
    

    In case of Gradle Builds:

    android project update .p ./YourApp/src/main/ -t android-19
    cp ./YourApp/src/main/local.properties ./local.properties # or ln if you feel so
    

提交回复
热议问题