mercredi 20 mai 2015

In Android studio failed to complete Gradle execution, a fatal exception is occured?

package com.example.sachin.practices;

import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;


public class MainActivity extends ActionBarActivity {

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


      Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.vogella.com"));
        startActivity(i);

    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.menu_main, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();

        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }

        return super.onOptionsItemSelected(item);
    }
}

this is the simple code i am going to execute but i getting the error, failed to complete gradle execution, while Executing the the log message like this,

Waiting for device. Target device: asus-asus_t00j-EAAZCY30C637 Uploading file local path: C:\Users\Sachin\AndroidStudioProjects\Practic\app\build\outputs\apk\app-debug.apk remote path: /data/local/tmp/com.example.sachin.practices Local path doesn't exist.

I am confused what is the exact problem this is due to Gradle or anything else.

Aucun commentaire:

Enregistrer un commentaire