Java 错误:(41)解析XML时出错:格式不正确(无效令牌)+;无法解析符号R

Java 错误:(41)解析XML时出错:格式不正确(无效令牌)+;无法解析符号R,java,android,xml,Java,Android,Xml,我到处都找不到。我已经找了一个多小时了,现在一点运气都没有。你看到了吗 我还收到以下错误消息: 错误:任务“:app:processDebugResources”的执行失败 com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程“command”C:\Users\danle\AppData\Local\android\Sdk\buildtools\24.0.0\aap

我到处都找不到。我已经找了一个多小时了,现在一点运气都没有。你看到了吗

我还收到以下错误消息:

错误:任务“:app:processDebugResources”的执行失败

com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程“command”C:\Users\danle\AppData\Local\android\Sdk\buildtools\24.0.0\aapt.exe“”完成,退出值为1,不为零


包com.example.musicplayer;
导入android.media.MediaPlayer;
导入android.os.Bundle;
导入android.support.v7.app.AppActivity;
导入android.view.view;
导入android.widget.Button;
公共类MainActivity扩展了AppCompatActivity{
媒体播放器;
@凌驾
创建时受保护的void(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mediaPlayer=mediaPlayer.create(这个,R.raw.gorillaz);
按钮播放=(按钮)findViewById(R.id.play);
play.setOnClickListener(新视图.OnClickListener(){
@凌驾
公共void onClick(视图v){
mediaPlayer.start();
}
});
按钮暂停=(按钮)findViewById(R.id.pause);
pause.setOnClickListener(新视图.OnClickListener(){
@凌驾
公共void onClick(视图v){
mediaPlayer.pause();
}
});
按钮重置=(按钮)findViewById(R.id.reset);
reset.setOnClickListener(新视图.OnClickListener(){
@凌驾
公共void onClick(视图v){
mediaPlayer.reset();
}
});
}
}

你不能使用
你不能使用
它可以是java的,你能发布代码吗?我已经添加了java。我还收到了无法解决符号r错误的消息。问题已解决。thxIt可以是java的,你能发布代码吗?我已经添加了java。我还收到了无法解决符号r错误的消息。问题已解决。修好了!谢谢这就解决了!谢谢
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.example.musicplayer.MainActivity">

    <TextView android:text="@string/music_player"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/textview"
        android:textSize="35sp"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/dana_higz"
        android:id="@+id/textView"
        android:layout_below="@+id/textview"
        android:layout_centerHorizontal="true"
        android:textColor="#ff7aff24"
        android:textSize="35sp" />

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/imageView"
        android:layout_below="@+id/textView"
        android:layout_centerHorizontal="true"
        android:src="@drawable/abc"
        android:contentDescription="@string/player_icon" />

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="|<<"
        android:id="@+id/reset"
        android:layout_centerInParent="true"
        android:layout_alignParentBottom="true"
        android:layout_toLeftOf="@+id/play"

        />


    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text=">>"
        android:id="@+id/play"
        android:layout_centerInParent="true"
        android:layout_alignParentBottom="true"

        />

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="||"
        android:id="@+id/pause"
        android:layout_centerInParent="true"
        android:layout_toRightOf="@+id/play"
        android:layout_alignParentBottom="true"
         />



</RelativeLayout>








package com.example.musicplayer;

import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    MediaPlayer mediaPlayer;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mediaPlayer = MediaPlayer.create(this, R.raw.gorillaz);

        Button play = (Button) findViewById(R.id.play);
        play.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                mediaPlayer.start();
            }
        });

        Button pause = (Button) findViewById(R.id.pause);
        pause.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mediaPlayer.pause();
            }
        });

        Button reset = (Button) findViewById(R.id.reset);
        reset.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mediaPlayer.reset();
            }
        });




    }
}
android:text="|<<"
android:text="|&lt;&lt;"