关于看了mars 老师的01-18 文件下载的视频 报错求解决 看了网上也有这种错误求大神
我是初学 基本上对着MARS老师打的 也比对过 但不知道这个错误怎么解决= =12-02 02:45:34.592: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
12-02 02:45:34.592: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
12-02 02:45:34.592: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
12-02 02:45:34.592: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
12-02 02:45:42.642: ERROR/MemoryHeapBase(52): error opening /dev/pmem: No such file or directory
12-02 02:45:42.642: ERROR/Su易做图ceFlinger(52): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
12-02 02:45:42.753: ERROR/libEGL(52): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
12-02 02:45:43.042: ERROR/libEGL(63): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
12-02 02:45:45.382: ERROR/BatteryService(52): Could not open '/sys/class/power_supply/usb/online'
12-02 02:45:45.382: ERROR/BatteryService(52): Could not open '/sys/class/power_supply/battery/batt_vol'
12-02 02:45:45.382: ERROR/BatteryService(52): Could not open '/sys/class/power_supply/battery/batt_temp'
12-02 02:45:45.772: ERROR/EventHub(52): could not get driver version for /dev/input/mouse0, Not a typewriter
12-02 02:45:45.772: ERROR/EventHub(52): could not get driver version for /dev/input/mice, Not a typewriter
12-02 02:45:46.023: ERROR/System(52): Failure starting core service
12-02 02:45:46.023: ERROR/System(52): java.lang.SecurityException
12-02 02:45:46.023: ERROR/System(52): at android.os.BinderProxy.transact(Native Method)
12-02 02:45:46.023: ERROR/System(52): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
12-02 02:45:46.023: ERROR/System(52): at android.os.ServiceManager.addService(ServiceManager.java:72)
12-02 02:45:46.023: ERROR/System(52): at com.android.server.ServerThread.run(SystemServer.java:162)
12-02 02:45:46.023: ERROR/AndroidRuntime(52): Crash logging skipped, no checkin service
12-02 02:45:46.592: ERROR/LockPatternKeyguardView(52): Failed to bind to GLS while checking for account
12-02 02:45:48.572: ERROR/ActivityThread(96): Failed to find provider info for com.google.settings
12-02 02:45:48.592: ERROR/ActivityThread(96): Failed to find provider info for com.google.settings
12-02 02:45:50.122: ERROR/ApplicationContext(52): Couldn't create directory for SharedPreferences file shared_prefs/wall易做图-hints.xml
12-02 02:45:54.722: ERROR/MediaPlayerService(31): Couldn't open fd for content://settings/system/notification_sound
12-02 02:45:54.732: ERROR/MediaPlayer(52): Unable to to create media player
12-02 02:45:48.775: ERROR/ActivityThread(93): Failed to find provider info for android.server.checkin
12-02 02:45:50.485: ERROR/ActivityThread(93): Failed to find provider info for android.server.checkin
12-02 02:45:50.595: ERROR/ActivityThread(93): Failed to find provider info for android.server.checkin
--------------------编程问答-------------------- tomcat 我已经打开了
权限我也改了
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mars.download"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="4" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".DownloadActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<user-permission android:name="android.permission.INTERNET"></user-permission>
<user-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></user-permission>
</manifest> --------------------编程问答-------------------- 有没有人看过 mars老师的视频 帮我解决下啊 --------------------编程问答-------------------- 发出现问题的地方。。。。 --------------------编程问答-------------------- 错误报告就是出现问题的地方... 这个错误很多人都网上都有 都没有怎么解决好... --------------------编程问答-------------------- 找不到你定义的目录或文件...
因为你的是多级目录,所以在创建目录的时候使用dirFile.mkdirs()而不是使用dirFile.mkdir()
来创建好你的多级目录。
创建好目录之后才创建你的文件
这样应该就可以了...
补充:移动开发 , Android