0
Android Studio無法識別html標籤,它們以紅色突出顯示,它表示「無法解析符號」gt「」,並且該項目不會生成。有誰知道爲什麼我可以解決這個問題?任何輸入將不勝感激。Android Studio無法識別<和>標籤
以下是錯誤:
Configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2400Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72400Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42400Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2400Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:incrementalDebugJavaCompilationSafeguard
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/home/zerodavila/AndroidStudioProjects/ZLayer4 (another copy)/app/src/main/java/com/hivemind/zerodavila/zlayer4/MusicService.java:166: error: ')' expected
if(songPosn& lt; 0) songPosn=songs.size()-1;
^
/home/zerodavila/AndroidStudioProjects/ZLayer4 (another copy)/app/src/main/java/com/hivemind/zerodavila/zlayer4/MusicService.java:166: error: not a statement
if(songPosn& lt; 0) songPosn=songs.size()-1;
^
/home/zerodavila/AndroidStudioProjects/ZLayer4 (another copy)/app/src/main/java/com/hivemind/zerodavila/zlayer4/MusicService.java:166: error: ';' expected
if(songPosn& lt; 0) songPosn=songs.size()-1;
^
/home/zerodavila/AndroidStudioProjects/ZLayer4 (another copy)/app/src/main/java/com/hivemind/zerodavila/zlayer4/MusicService.java:173: error: ')' expected
if(songPosn& gt; =songs.size()) songPosn=0;
^
/home/zerodavila/AndroidStudioProjects/ZLayer4 (another copy)/app/src/main/java/com/hivemind/zerodavila/zlayer4/MusicService.java:173: error: illegal start of expression
if(songPosn& gt; =songs.size()) songPosn=0;
^
/home/zerodavila/AndroidStudioProjects/ZLayer4 (another copy)/app/src/main/java/com/hivemind/zerodavila/zlayer4/MusicService.java:173: error: ';' expected
if(songPosn& gt; =songs.size()) songPosn=0;
^
6 errors
:app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2400Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72400Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42400Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2400Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:incrementalDebugJavaCompilationSafeguard
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/home/zerodavila/AndroidStudioProjects/ZLayer4 (another copy)/app/src/main/java/com/hivemind/zerodavila/zlayer4/MusicService.java:166: error: ')' expected
if(songPosn& lt; 0) songPosn=songs.size()-1;
^
/home/zerodavila/AndroidStudioProjects/ZLayer4 (another copy)/app/src/main/java/com/hivemind/zerodavila/zlayer4/MusicService.java:166: error: not a statement
if(songPosn& lt; 0) songPosn=songs.size()-1;
^
/home/zerodavila/AndroidStudioProjects/ZLayer4 (another copy)/app/src/main/java/com/hivemind/zerodavila/zlayer4/MusicService.java:166: error: ';' expected
if(songPosn& lt; 0) songPosn=songs.size()-1;
^
/home/zerodavila/AndroidStudioProjects/ZLayer4 (another copy)/app/src/main/java/com/hivemind/zerodavila/zlayer4/MusicService.java:173: error: ')' expected
if(songPosn& gt; =songs.size()) songPosn=0;
^
/home/zerodavila/AndroidStudioProjects/ZLayer4 (another copy)/app/src/main/java/com/hivemind/zerodavila/zlayer4/MusicService.java:173: error: illegal start of expression
if(songPosn& gt; =songs.size()) songPosn=0;
^
/home/zerodavila/AndroidStudioProjects/ZLayer4 (another copy)/app/src/main/java/com/hivemind/zerodavila/zlayer4/MusicService.java:173: error: ';' expected
if(songPosn& gt; =songs.size()) songPosn=0;
^
6 errors
:app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1 mins 19.833 secs
Total time: 1 mins 19.833 secs
哪裏有具體說這個?你能告訴我們這個文件嗎?該文件是什麼類型? – markspace
java文件,後臺服務和活動,所以基本上無處不在,當我將鼠標懸停在標籤上時,它會在彈出窗口中顯示。當我嘗試構建時,我得到:錯誤:(173,39)錯誤:';'預期 錯誤:(166,24)錯誤:')'預計 錯誤:(166,26)錯誤:不是語句 錯誤:(166,27)錯誤:';'預期 錯誤:(173,24)錯誤:')'預計 錯誤:(173,26)錯誤:表達式的非法開始 :app:compileDebugJavaWithJavac失敗 錯誤:執行失敗的任務':app:compileDebugJavaWithJavac'。 >編譯失敗;詳細信息請參閱編譯器錯誤輸出。 – Konrad
向我們展示該文件的實際文本,並在錯誤周圍提供足夠的文本以提供適當的上下文。 – markspace