无法解析方法'getInstance()'

时间:2016-12-21 02:18:31

标签: java android

我正在观看youtube教程(Firebase storage,大约14分钟后我收到了此错误代码:

  

无法解析方法'getInstance()'

有人可以帮我解决吗?我是Java的新手,并且一直在观看教程以使理解正确。我知道这是一个小细节,但它确实令人沮丧。

package bfb.ess.myapplicationbfb;

import android.app.ProgressDialog;
import android.media.MediaRecorder;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.google.android.gms.tasks.OnSuccessListener;
import com.google.firebase.storage.UploadTask;

import java.io.File;
import java.io.IOException;

public class speakp extends AppCompatActivity {
private Button mRecordBtn;
private TextView mRecordlabel;

private MediaRecorder mRecorder;

private String mFileName = null;

private static final String LOG_TAG = "Record_log";

private StorageReference mStorage;


private ProgressDialog mProgress;


@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.recordpage);

    mStorage = FirebaseStorage.getInstance().getReference(); /*RIGHT HERE*/




    mRecordlabel = (TextView) findViewById(R.id.recordlabel);
    mRecordBtn =(Button) findViewById(R.id.recordBtn);

0 个答案:

没有答案