【发布时间】:2017-06-17 05:56:43
【问题描述】:
我在 android 中编写了一个定位服务。在 AndroidManifest.xml 我定义了两个意图过滤器:
<service
android:name=".LocationServiceV2"
android:exported="true"
android:permission="android.permission.ACCESS_COARSE_LOCATION">
<intent-filter>
<action android:name="com.android.location.service.v3.NetworkLocationProvider" />
<action android:name="com.android.location.service.v2.NetworkLocationProvider" />
</intent-filter>
<meta-data
android:name="serviceVersion"
android:value="2" />
<meta-data
android:name="serviceIsMultiuser"
android:value="false" />
</service>
但是当我在 Nexus 5x 中在 logcat 中运行时会显示此错误:
com.example.user.nlpservice 解析服务com.android.location.service.v3.NetworkLocationProvider,但签名错误,忽略
错误的签名是什么意思,我该如何解决这个问题?
【问题讨论】: