SET_BTU.XML(自己寫的)文件最後面出現了一長長的紅色波浪線打底的語句:04-16 16:53:07.066: E/AndroidRuntime(25817): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.huyubao/com.example.huyubao.MainActivity}: android.view.InflateException: Binary XML file line #30: Error inflating class com.android.internal.widget.ActionBarView
這是什麼意思?怎麼解決呀?
錯誤提示:
Error:(16) Error parsing XML: junk after document element
Error:(16) Execution failed for task ':app:processDebugResources'.
com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\Users\Administrator\AppData\Local\Android\sdk\build-tools\21.1.2\aapt.exe package -f --no-crunch -I C:\Users\Administrator\AppData\Local\Android\sdk\platforms\android-21\android.jar -M D:\android-studio\exercise\svn_小風車\xfegnche.radio_net\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -S D:\android-studio\exercise\svn_小風車\xfegnche.radio_net\app\build\intermediates\res\debug -A D:\android-studio\exercise\svn_小風車\xfegnche.radio_net\app\build\intermediates\assets\debug -m -J D:\android-studio\exercise\svn_小風車\xfegnche.radio_net\app\build\generated\source\r\debug -F D:\android-studio\exercise\svn_小風車\xfegnche.radio_net\app\build\intermediates\res\resources-debug.ap_ --debug-mode --custom-package com.xfengche.wwww.xfegncheradio_net -0 apk --output-text-symbols D:\android-studio\exercise\svn_小風車\xfegnche.radio_net\app\build\intermediates\symbols\debug
Error Code:
1
Output:
D:\android-studio\exercise\svn_小風車\xfegnche.radio_net\app\build\intermediates\res\debug\drawable\set_btn.xml:16: error: Error parsing XML: junk after document element
XML文件格式是否合法,含有垃圾字符