am startservice com.xxx.xxx.locationservice / .GPSService
错误:需要权限com.xxx.xxx.locationservice.GPSService
这是我的manifest.xml
<service
android:name=".GPSService"
android:permission="com.xxx.xxx.locationservice.GPSService"
android:exported="true"
android:launchMode="singleTop">
<intent-filter>
<action android:name="com.xxx.xxx.locationservice.GPSService"/>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</service>
你能帮我吗?怎么了? Android版本7.1.2