eroor in my android code in main activity :   
 

enter code here    
import android.os.AsyncTask;

import android.support.v7.app.AppCompatActivity;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.TextView;

import java.io.BufferedReader;

import java.io.IOException;

import java.io.InputStream;

import java.io.InputStreamReader;

import java.net.HttpURLConnection;

import java.net.MalformedURLException;

import java.net.URL;

import java .lang.String;


import static android.support.v7.appcompat.R.id.text;


public class MainActivity extends AppCompatActivity {

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

        TextView text = (TextView) findViewById(R.id.tv);
        Button btn = (Button) findViewById(R.id.btn_hit);

        btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                new Jsontask().execute("https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesDemoItem.txt");
            }
        });
    }
        public class Jsontask extends AsyncTask<String,String,String>{
            @Override
            protected String doInBackground(String... params) {
                HttpURLConnection http=null;
                BufferedReader reader = null;

                try {
                    URL url=new URL(params[0]);
                    http=(HttpURLConnection)url.openConnection();
                    http.connect();
                    InputStream inp=http.getInputStream();
                    reader=new BufferedReader(new InputStreamReader(inp));


                    String line=" ";
                    StringBuffer read=new StringBuffer();
                    while((line=reader.readLine())!=null)
                        read.append(line);
                    return reader.toString();

                } catch(MalformedURLException e1){
                    e1.printStackTrace();



                } catch (IOException e) {
                    e.printStackTrace();
                }
                finally {
                    if (http != null)

                        http.disconnect();
                    try {
                        if(reader!=null)
                            reader.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }

             return null;
            }

            @Override
           protected void onPostExecute(String result){
                super.onPostExecute(result);
                text.setText(result);
            }
        }
        }



  


