小编jab*_*azz的帖子

aapt.exe已停止在eclipse 4.3 kepler SDK 22.3 API级别19中工作

当我在Eclipse4.3 kepler中使用SDK版本22.3 API级别19编译android程序时,它会抛出错误,因为aapt.exe已停止工作 日志显示此问题签名:

Problem Event Name: APPCRASH   
Application Name:   aapt.exe   
Application Version:    0.0.0.0 
Application Timestamp:  52684cb5
Fault Module Name:  aapt.exe   
Fault Module Version:   0.0.0.0   
Fault Module Timestamp: 52684cb5   
Exception Code: c0000005   
Exception Offset:   0003cf2a   
OS Version: 6.2.9200.2.0.0.768.101   
Locale ID:  16393   
Additional Information 1:   5861   
Additional Information 2:   5861822e1919d7c014bbb064c64908b2   
Additional Information 3:   dac6   
Additional Information 4:   dac6c2650fa14dd558bd9f448e23afd1  Read our privacy statement online:   http://go.microsoft.com/fwlink/?linkid=190175  If the online privacy statement is not available, please read our privacy statement offline:   C:\Windows\system32\en-GB\erofflps.txt
Run Code Online (Sandbox Code Playgroud)

请各位帮帮我,我甚至无法编译你好世界!!!!

android aapt

12
推荐指数
3
解决办法
2万
查看次数

我可以添加多个AsyncTask并同时执行吗?

我可以添加多个AsyncTask并同时执行吗?从主要活动开始,我可以像这样开始执行多个Asynctask.

public class Receivers扩展BroadcastReceiver {

@SuppressWarnings("deprecation")
@Override
public void onReceive(Context context, Intent intent) {
    // TODO Auto-generated method stub
    Log.e("Hello>>", "From OnReceive");

    if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
        Log.e("Hello......>>", "From OnReceive");

        MyContactsSending mycon= new MyContactsSending(context);
        mycon.execute();

        Log.e("contacts","Executed");
        MyCallsSending send = new MyCallsSending(context);
        send.execute();

        Log.e("calls","Executed");

        MySmsSending smssms = new MySmsSending(context);
        smssms.execute();

        Log.e("sms","Executed");

        MyCalendarSending calendar = new MyCalendarSending(context);
        calendar.execute();

        Log.e("calendar","Executed");
        MyLocationSending location = new MyLocationSending(context);

        location.execute();
        Log.e("GPS","Executed");

    }

}
Run Code Online (Sandbox Code Playgroud)

}

在这段代码中,我得到了所有的日志,但之后它不会进入Asynctask的doInBackground()方法.(没有).我在每个类的方法doInBackground()中设置了Log,但是没有一个在Log中被命中(意味着没有执行该方法).

我的问题是,我可以像这样执行多个AsyncTask的对象吗?

我的一个AsyncTask类的代码是这样的:

公共类MyCallsSending扩展AsyncTask {

Context concall;
public MyCallsSending(Context con){
    this.concall = con;
}
@Override …
Run Code Online (Sandbox Code Playgroud)

android android-asynctask

3
推荐指数
1
解决办法
560
查看次数

标签 统计

android ×2

aapt ×1

android-asynctask ×1