最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

INSTALL_FAILED_DUPLICATE_PERMISSION…C2D_MESSAGE

INSTALL_FAILED_DUPLICATE_PERMISSION…C2D_MESSAGE

一只萌萌小番薯 2019-12-13 10:11:01
我在應(yīng)用中使用Google通知,到目前為止,我在清單中做了以下操作:<!-- GCM --><uses-permission android:name="android.permission.GET_ACCOUNTS" /> <!-- GCM requires a Google account. --><uses-permission android:name="android.permission.WAKE_LOCK" /> <!-- Keeps the processor from sleeping when a message is received. --> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <!-- This app has permission to register and receive data message. --> <!-- Creates a custom permission so only this app can receive its messages. NOTE: APP_PACKAGE.permission.C2D_MESSAGE -->   <permission android:name="com.myapp.permission.C2D_MESSAGE" android:protectionLevel="signature" /><uses-permission android:name="com.myapp.permission.C2D_MESSAGE" />    <!-- END GCM -->在我將Nexus 7更新為Android 5.0之前,它一直運行良好?,F(xiàn)在,當我嘗試使用Eclipse在此設(shè)備中安裝應(yīng)用程序時,出現(xiàn)以下錯誤:INSTALL_FAILED_DUPLICATE_PERMISSION perm = com.myapp.permission.C2D_MESSAGE pkg = com.myapp我不明白這是怎么回事...直到Android 5.0,它都可以正常工作。我知道,我使用C2D_MESSAGE的兩條線,permission并uses-permission但我已經(jīng)復制從原來的谷歌GCM指南,代碼,因此它必須是罰款。
查看完整描述

3 回答

?
郎朗坤

TA貢獻1921條經(jīng)驗 獲得超9個贊

去掉


<uses-permission android:name="${applicationId}.permission.C2D_MESSAGE"/>

<permission

    android:name="${applicationId}.permission.C2D_MESSAGE"

    android:protectionLevel="signature"/>

運行應(yīng)用程序...然后再次添加許可并運行應(yīng)用程序。


準備!。


查看完整回答
反對 回復 2019-12-13
  • 3 回答
  • 0 關(guān)注
  • 1441 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號