android - Firebase upload audio exceptions -


i'm trying upload mp3 audio file firebase emulator , few exceptions. file exist in "file manager"-> "downloads" directory. permissions "internet" , "read_external_storage.

@override public void onclick(view view) {     intent intent = new intent();     intent.settype("audio/*");     intent.setaction(intent.action_get_content);     startactivityforresult(intent,req_code); }  @override protected void onactivityresult(int requestcode, int resultcode, intent data) {       storagemetadata metadata = new storagemetadata.builder()             .setcontenttype("audio/mp3")             .build();     firebasestorage fbstorageinstance = firebasestorage.getinstance();     storagereference  storagereference = fbstorageinstance.getreferencefromurl("gs://myfirebase-a8d58.appspot.com");     uri fileuri = data.getdata();     storagereference audioref = storagereference.child("audio/" + fileuri.getlastpathsegment());     uploadtask uploadtask = audioref.putfile(fileuri,metadata);      super.onactivityresult(requestcode, resultcode, data);  } 

and exceptions

10-26 06:28:04.215 2904-4269/com.example.vadik.myapplication e/networkrqfactoryproxy: networkrequestfactoryproxy failed remoteexception:       com.google.android.gms.internal.zzsu$zza: no acceptable module found. local version 0 , remote version 0.        @ com.google.android.gms.internal.zzsu.zza(unknown source)        @ com.google.android.gms.internal.zzanu.<init>(unknown source)       @ com.google.android.gms.internal.zzanu.zzj(unknown source)       @ com.google.firebase.storage.storagereference.al(unknown source)       @ com.google.firebase.storage.uploadtask.ax(unknown source)       @ com.google.firebase.storage.uploadtask.run(unknown source)       @ com.google.firebase.storage.storagetask$5.run(unknown source)       @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1112)       @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:587)       @ java.lang.thread.run(thread.java:818) 10-26 06:28:04.215 2904-4269/com.example.vadik.myapplication e/uploadtask: unable create network request metadata android.os.remoteexception @ com.google.android.gms.internal.zzanu.<init>(unknown source) @ com.google.android.gms.internal.zzanu.zzj(unknown source) @ com.google.firebase.storage.storagereference.al(unknown source) @ com.google.firebase.storage.uploadtask.ax(unknown source) @ com.google.firebase.storage.uploadtask.run(unknown source) @ com.google.firebase.storage.storagetask$5.run(unknown source) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1112) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:587) @ java.lang.thread.run(thread.java:818) 10-26 06:28:04.215 2904-4269/com.example.vadik.myapplication e/storageexception: storageexception has occurred.  unknown error occurred, please check http result code , inner exception server response.   code: -13000 httpresult: 0 10-26 06:28:04.215 2904-4269/com.example.vadik.myapplication e/storageexception: null  android.os.remoteexception      @ com.google.android.gms.internal.zzanu.<init>(unknown source)      @ com.google.android.gms.internal.zzanu.zzj(unknown source)      @ com.google.firebase.storage.storagereference.al(unknown source)      @ com.google.firebase.storage.uploadtask.ax(unknown source)      @ com.google.firebase.storage.uploadtask.run(unknown source)      @ com.google.firebase.storage.storagetask$5.run(unknown source)      @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1112)      @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:587)      @ java.lang.thread.run(thread.java:818) 

firebasestorage need google play service. make sure google play service on emulator.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -