Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Duvida Manifest

Olá, estou com problemas para mudar o manifest. quando do Run o app fecha.

segue meu codigo.

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    tools:ignore="GoogleAppIndexingWarning">


    <activity android:name=".MainActivity">

    </activity>

    <activity android:name=".FormularioActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

</application>

3 respostas

Olá! Aparentemente, não consigo identificar erro em seu manifest.

Qual é o erro que aparece no Logcat?

Pode, postar o código na classe FormularioActivity e o layout xml dele?

Formulario xml <android.support.constraint.LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" >

<EditText android:hint="Nome"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
/>

<EditText android:hint="Endereco"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
/>

<EditText android:hint="Telefone"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
/>

<EditText android:hint="Site"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
/>

<RatingBar
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:numStars="5"
    android:max="10"
/>

</android.support.constraint.LinearLayout>


Formulario -------------------- package br.com.chioligg.agenda;

import android.support.v7.app.AppCompatActivity; import android.os.Bundle;

public class FormularioActivity extends AppCompatActivity {

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

}


logcat

insira seu código aqui

10-18 19:24:01.483 3319-3319/? E/cutils-trace: Error opening trace file: No such file or directory (2) 10-18 19:24:10.633 821-952/? I/Finsky: [51] com.google.android.finsky.bo.ad.run(6): Stats for Executor: BlockingExecutor com.google.android.finsky.bo.ae@4a80ef08[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 6] 10-18 19:24:10.633 821-952/? I/Finsky: [51] com.google.android.finsky.bo.ad.run(6): Stats for Executor: LightweightExecutor com.google.android.finsky.bo.ae@4a7fae7c[Running, pool size = 2, active threads = 0, queued tasks = 0, completed tasks = 44] 10-18 19:24:10.843 3323-3323/? E/cutils-trace: Error opening trace file: No such file or directory (2) 10-18 19:24:11.093 3327-3327/? E/cutils-trace: Error opening trace file: No such file or directory (2) 10-18 19:24:12.033 821-952/? I/Finsky: [51] com.google.android.finsky.bo.ad.run(6): Stats for Executor: bgExecutor com.google.android.finsky.bo.ae@4a843008[Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 16] 10-18 19:24:12.283 3331-3331/? E/cutils-trace: Error opening trace file: No such file or directory (2) 10-18 19:24:12.753 3335-3335/? E/cutils-trace: Error opening trace file: No such file or directory (2) 10-18 19:24:16.193 3339-3339/? E/cutils-trace: Error opening trace file: No such file or directory (2) 10-18 19:24:17.643 3343-3343/? E/cutils-trace: Error opening trace file: No such file or directory (2) 10-18 19:24:17.873 3347-3347/? E/cutils-trace: Error opening trace file: No such file or directory (2) 10-18 19:24:22.733 3351-3351/? E/cutils-trace: Error opening trace file: No such file or directory (2)

solução!

Achei o erro, era no linear layout, ufa...

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    >

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software