android5.0 Error "Com.ut.permission.DEVICE_STATE" causes the application to not install

Source: Internet
Author: User

    Previously developed applications worked well before android4.4. The result of upgrading to android5.0 will be reported Com.ut.permission.DEVICE_STATE this permission issue. This problem is probably caused by the Declaration of authority and the manner in which it is acquired, and it can be avoided by notice. </span>

<uses-permission android:name= "Com.ut.permission.DEVICE_STATE" ></uses-permission>
This permission should be used rather than declared
<permissionandroid:name= "Com.ut.permission.DEVICE_STATE" ></permission>
Claim permissions can only have one app claim, and if more than one app declares a permission, it must be signed as well

Demo1 's androidmanifest.xml in a statement

<permissionandroid:protectionlevel= "Normal" android:name= "Com.tutor.permission.VIEW" >   </permission >         <activityandroid:name= ". Viewactivity "                  android:label=" Custom action with permission "                  android:permission=" Com.tutor.permission.VIEW        " >            <intent-filter>                <actionandroid:name= "Android.tutor.action.VIEW"/>                < Categoryandroid:name= "Android.intent.category.DEFAULT"/>            </intent-filter>        </activity>
Demo2 references in the Androidmanifest.xml

<uses-permissionandroid:name= "Com.tutor.permission.VIEW" ></uses-permission>
This form is not a problem in android4.4 and android5.0.
If referenced in Demo2 's androidmanifest.xml:

<permissionandroid:protectionlevel= "Normal" android:name= "Com.tutor.permission.VIEW" ></permission> <uses-permissionandroid:name= "Com.tutor.permission.VIEW" ></uses-permission>
There is a problem with this writing, more statements;
This is still not a problem in android4.4.
But in android5.0, it's not going to fit.


android5.0 Error "Com.ut.permission.DEVICE_STATE" causes the application to not install

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.