Zygote:错误关闭描述符

时间:2015-07-12 21:44:46

标签: java android android-studio

这个错误是什么意思以及如何修复它??

Zygote:error closing descriptor
libcore.io.ErrnoException: close failed: EBADF (Bad file number)

at libcore.io.Posix.close(Native Method)

at libcore.io.BlockGuardOs.close(BlockGuardOs.java:75)

at com.android.internal.os.ZygoteInit.closeServerSocket(ZygoteInit.java:220)

at com.android.internal.os.ZygoteConnection.handleChildProc(ZygoteConnection.java:879)

at com.android.internal.os.ZygoteConnection.runOnce(ZygoteConnection.java:242)

at com.android.internal.os.ZygoteInit.runSelectLoop(ZygoteInit.java:700)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)

at dalvik.system.NativeStart.main(Native Method)

我一直在应用程序项目上使用以下导入,并且不知道这个错误来自哪里,尽管在运行时没有任何问题。

import android.os.Bundle;
import android.widget.Toast;
import android.view.GestureDetector;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.content.Intent;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.widget.Toolbar;
import android.support.v7.widget.RecyclerView;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.widget.LinearLayoutManager;

将添加所有必需的类和布局,这是我的清单文件:

<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.devs.fookart">

<uses-sdk
    android:minSdkVersion="9"
    android:targetSdkVersion="22"/>

<uses-permission
    android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

<uses-permission
    android:name="android.permission.READ_EXTERNAL_STORAGE"/>

<uses-permission
    android:name="android.permission.INTERNET"/>

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme">

    <activity
        android:name=".MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

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

    <activity
        android:name=".ProfileActivity"
        android:label="@string/profile_name" >
    </activity>

    <activity
        android:name=".SettingsActivity"
        android:label="@string/action_settings" >
    </activity>

    <activity
        android:name=".SplashActivity"
        android:theme="@style/Theme.AppCompat.Light.NoActionBar"
        android:label="@string/action_settings" >
    </activity>
</application>

</manifest>

0 个答案:

没有答案