Mas isso aqui import android.R; não é do seu projeto
Em 2 de março de 2014 16:45, Thiago <thiagonascimento.rj@hotmail.com> escreveu:
Não. Quando a classe é aberta, ela já é aberta com o erro.
Ai eu fui verificar se tinha sugestões... Ai que fiz import R, e aí o erro continou.
Em domingo, 2 de março de 2014 16h24min16s UTC-3, Thiago escreveu:Pessoal,
Sempre trablalhei com o adt no Windows, e ao instalar o adt bundle no Ubuntu e criar um aplicativo simples, o arquivo o app não compila. Ele apresenta um erro nos métodos criados pelo próprio Eclipse. O layout criticado e menu, foram criados pelo pŕoprio eclipse adt.
Segue a Classe:
package com.example.x;
import android.R;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main); // o ERRO É AKI
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu); // O ERRO É AKI,
return true;
}
}--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Rudson Lima ( live-O )
Desenvolvedor Android - Web Service C# - SQL Server - Delphi+55 85 87050560 - Fortaleza-ce
Meu app na Google Play "CepLive-O"
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.






0 comentários:
Postar um comentário