diachedelic / capacitor-blob-writer

Capacitor plugin to write binary data to the filesystem
MIT License
132 stars 17 forks source link

Error when building Android #17

Closed thanhhoa214 closed 4 years ago

thanhhoa214 commented 4 years ago

Error when building Android:

First thing I need to say thanks for the great idea, to build in-app-server and write files. You did a good job on iOS but seemly Android does not work well. Please help.


### **Build Output Detail Tab**
![Screen Shot 2020-07-29 at 15 48 22](https://user-images.githubusercontent.com/32329202/88778631-f1d6ee00-d1b2-11ea-8ba6-73c8acfaf636.png)

### **Build Output**
![Screen Shot 2020-07-29 at 15 48 47](https://user-images.githubusercontent.com/32329202/88778674-00bda080-d1b3-11ea-85be-b22d2b683399.png)

### **Error at line `58` of `BlobWriter.java`: `server` null but I don't know why**
![Screen Shot 2020-07-29 at 15 50 55](https://user-images.githubusercontent.com/32329202/88778897-4bd7b380-d1b3-11ea-9771-9437e67707f9.png)

### Thanks for your help!
diachedelic commented 4 years ago

It appears you are using Capacitor v1.x, which it turns out is not supported :( - I have added a warning to the readme. Can you please upgrade to Capacitor v2 and see if that solves your issue?

Thanks for the detailed reporting!

diachedelic commented 4 years ago

Actually, I've made that call backwards compatible in 0.1.9 - can you please see if it works with your version of capacitor?

thanhhoa214 commented 4 years ago

I turned my app to Capacitor v2 so it works as expected. Sorry I missed reading your README. Big hug, guy.