Androidstudio problem does not work on AVD

Asked

Viewed 59 times

0

Good evening I have a problem, I have no idea how much help I may need from you! I am developing an Android application in Android studio in the code is all correct compiles legal has no syntax error , but at the time of emulating this presents the following error.

Note: This error occurs in all emulations not only in Genymotion , but in the AVD itself of android studio also in Galaxy etc...

inserir a descrição da imagem aqui

GENERATED ERROR LOG :

07-30 21:15:17.200 402-402/? E/vinput: Vinput is not configured. The command mouse_press is ignored
07-30 21:15:17.203 352-552/system_process E/EventHub: could not get driver version for /dev/input/mouse0, Not a typewriter
07-30 21:15:17.415 391-391/? E/hw-IPCThreadState: binder thread pool (1 threads) starved for 164 ms
07-30 21:15:17.415 391-391/? E/hw-IPCThreadState: binder thread pool (1 threads) starved for 164 ms
07-30 21:15:17.479 401-401/? E/EGL_emulation: tid 401: eglCreateSyncKHR(1881): error 0x3004 (EGL_BAD_ATTRIBUTE)
07-30 21:15:17.479 401-401/? E/EGL_emulation: tid 401: eglCreateSyncKHR(1881): error 0x3004 (EGL_BAD_ATTRIBUTE)
07-30 21:15:18.116 1124-1237/com.android.launcher3 E/EGL_emulation: tid 1237: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH)
07-30 21:15:18.138 416-416/? E/OMXNodeInstance: setConfig(0xf3ea10e0:google.vorbis.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
07-30 21:15:18.140 416-801/? E/OMXNodeInstance: getConfig(0xf3ea10e0:google.vorbis.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: Undefined(0x80001001)
07-30 21:15:18.463 352-366/system_process E/memtrack: Couldn't load memtrack module

My activity_main.xml is as follows :

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/my_bg"
    tools:context=".MainActivity">



    <LinearLayout
        android:orientation="vertical"
        android:layout_centerInParent="true"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"></LinearLayout>

    <LinearLayout
        android:orientation="horizontal"
        android:layout_alignParentBottom="true"
        android:weightSum="2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <info.hoang8f.widget.FButton
            android:id="@+id/btnSignUp"
            android:text="Sign Up"
            android:textColor="@android:color/white"
            android:layout_weight="1"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_margin="8dp"
            app:buttonColor="@color/btnSignUp"
            app:shadowColor="@android:color/black"
            app:shadowEnabled="true"
            app:shadowHeight="5dp"
            app:cornerRadius="4dp"
        />

        <info.hoang8f.widget.FButton
            android:id="@+id/btnSignIn"
            android:text="Sign In"
            android:textColor="@android:color/white"
            android:layout_weight="1"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_margin="8dp"
            app:buttonColor="@color/btnSignActive"
            app:shadowColor="@android:color/black"
            app:shadowEnabled="true"
            app:shadowHeight="5dp"
            app:cornerRadius="4dp"
            />


    </LinearLayout>

    <ImageView
        android:layout_width="307dp"
        android:layout_height="299dp"
        android:layout_alignParentStart="true"
        android:layout_alignParentTop="true"
        android:layout_marginStart="47dp"
        android:layout_marginTop="117dp"
        android:src="@drawable/logo_eat_it" />

</RelativeLayout>

My Mainactivity.java is as follows:

package com.example.user.androidbillfood;

import android.graphics.Typeface;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    Button btnSignIn,btnSignUp;

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

        btnSignIn = (Button)findViewById(R.id.btnSignIn);
        btnSignUp = (Button)findViewById(R.id.btnSignUp);

        btnSignIn.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View view){

            }
        });


        btnSignUp.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View view){

            }
        });


    }
}
  • 1

    Have you ever tried to create a project from scratch, empty and had it emulated in AVD Android studio? If yes, normal wheel?

  • I haven’t done it yet so I’ll take the test ! And I’ll send the result. I don’t rule out the possibility that it might be a problem in Gradle too! But I’m taking the test.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.