无法在接收INSTAL_FAILED_CONFLICTING_PROVIDER的设备上安装应用

时间:2016-05-09 13:05:44

标签: android build android-contentprovider

当我尝试使用android studio构建我的应用程序时,我遇到了以下错误:

enter image description here

单击确定后,它无法取消暂停应用程序,因为我已经取消了它。我收到以下错误:

$ adb shell pm uninstall com.siritime DELETE_FAILED_INTERNAL_ERROR 安装APK时出错

我之前能够在我的设备上运行该应用程序,前几天我使用GCM添加​​了推送通知功能,我不确定问题是否与此相关(我将GCM代码添加到我的项目中并进行了自定义) 。该应用程序可以在类似设备或其他设备上运行,但不能在我的设备上运行,

请你指导我手机上有什么问题? 我在不同的页面测试了一些其他的解决方案,但它们对我不起作用>>比如this one...

我没有使用过提供程序,我应该实现吗?

我从GCM推送通知示例代码中添加的清单部分是:`                                                        />                      

    <service
        android:name=".peyv.gcm.MyInstanceIDListenerService"
        android:exported="false">
        <intent-filter>
            <action android:name="com.google.android.gms.iid.InstanceID" />
        </intent-filter>
    </service>


    <service
        android:name=".peyv.gcm.MyGcmListenerService"
        android:exported="false">
        <intent-filter>
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />
        </intent-filter>
    </service>
    <service
        android:name=".peyv.gcm.RegistrationIntentService"
        android:exported="false"></service>

`

感谢所有

1 个答案:

答案 0 :(得分:0)

亲爱的,我自己也找到了这个问题,所以我不知道别人是否会面对这个问题,只是我分享我的解决方案并希望它可以帮到某人:

我像我这样添加了一个applicationID到我的等级

defaultConfig {
    applicationId "App Package Name like com.example"
    multiDexEnabled true
    minSdkVersion 15
    targetSdkVersion 22
}

谢谢大家。

相关问题