import java.util.ArrayList;
import android.os.Bundle;
import android.app.Activity;
import android.annotation.SuppressLint;
import android.app.PendingIntent;
import android.content.Intent;
import android.telephony.SmsManager;
import android.view.View;
import android.widget.*;
@SuppressLint("NewApi")
public class MainActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
btnSend = (Button) findViewById(R.id.btnSend);
edtPhoneNo = (EditText) findViewById(R.id.edtPhoneNo);
edtContent = (EditText) findViewById(R.id.edtContent);
当中的R就是报错额。。。
ID 和LAYOUT在R文件里都是有的
求解 在线等
------解决方案--------------------
Eclipse 工程clear一下试试
------解决方案--------------------
输入 import com.example.test.R 试试;
注意 com.example.test 要改成你自己的包名
------解决方案--------------------
你导入的包怎么没R包啊?导包
------解决方案--------------------
shift+ctr+o
------解决方案--------------------
再说LZ你能不能把你头像换了,看见凤姐头像我一下子思维就中断了。都不知道自己思考的是什么问题!
