-1
我得到了我的清单XML文件中的错误:“未解决的类”错误在AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.shaikhaalothman.playsongservice">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name=".PlaySongService"
android:enabled="true"
android:exported="true"></service>
</application>
</manifest>
,它给我一个错误在这行:
android:name=".PlaySongService"
和错误读:
未解决类 'PlaySongService'
验证Android XML文件中的资源引用。
我还没有找到任何有助于解决我在Stackoverflow和其他地方的错误。任何知道我在做什么错的人?
有项目中的任何.PlaySongService类 –
尝试清理项目。 (假设.PlaySongService类在Nilesh提到的项目中) – Prexx
PlaySongService的包是什么?它应该是com.example.shaikhaalothman.playsongservice,否则它将找不到该类。 – Chnoch