Android libraries not found

后端 未结 8 1299
失恋的感觉
失恋的感觉 2020-12-09 10:37

In my android project I am writing a program to connect to a server and below are the libraries that I need to use.

But I get an error saying the following cannot b

8条回答
  •  情深已故
    2020-12-09 11:13

    If you are using android studio add the following import to your code:

    import org.apache.http.entity.mime.content.FileBody;

    The IDE will give you an error under "mime" and ask you if you would like to install the dependancy. So if you say yes it will search for it online and then you can download it to app/build/libs directory. FileBody will then be recognized after this process is complete.

提交回复
热议问题