最近希望寫個 Android App 可以發出 post request
在 Python 四行程式碼就搞定惹
Java 寫到我暴氣
原生的 HttpURLConnection setRequestMethod 後 Debugger 看 method 還是 get
現在想改用 volley 看看
官網說只要加 implementation 'com.android.volley:volley:1.1.1' 到 build.gradle
可是我 sync 都噴錯
Build file '/home/nevikw39/AndroidStudioProjects/MyApplication/build.gradle'
line: 33
A problem occurred evaluating root project 'My Application'.
> Could not find method implementation() for arguments [com.android.volley:
volley:1.1.1] on object of type org.gradle.api.internal.artifacts.dsl.
dependencies.DefaultDependencyHandler.
Google 很久都沒有答案,請問怎麼到底怎麼引入 volley??
我的需求只是發發 post request 而已