简体   繁体   English

错误“未在Android设备上安装应用程序。”

[英]error “application not installed on android device.”

I have an application that works on the android emulator. 我有一个可以在android模拟器上运行的应用程序。 After installing the application on my samsung galaxy 4 i tried to open it and i get an error saying application not installed. 在我的三星银河4上安装该应用程序后,我尝试将其打开,但出现错误,提示未安装该应用程序。

My console shows some permission denial: 我的控制台显示了一些拒绝权限:

ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000     cmp=com.example.autoconvert/.MainActivity} from null (pid=16425, uid=2000) requires android.permission.ACCESS_CHECKIN_PROPERTIES

My manifest file 我的清单文件

<?xml version="1.0" encoding="utf-8"?>  
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.autoconvert"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="18" />
<application
    android:allowBackup="true"
    android:icon="@drawable/autoconvert"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" android:permission="android.permission.ACCESS_CHECKIN_PROPERTIES" android:debuggable="true">
    <activity
        android:name="com.example.autoconvert.MainActivity"
        android:label="@string/app_name" 
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

从applicaton标签中删除以下属性

    android:permission="android.permission.ACCESS_CHECKIN_PROPERTIES"

Use this: 用这个:

<?xml version="1.0" encoding="utf-8"?>  
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.autoconvert"
android:versionCode="1"
android:versionName="1.0" >

<uses-permission android:name="android.permission.ACCESS_CHECKIN_PROPERTIES" />

<uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="18" />
<application
    android:allowBackup="true"
    android:icon="@drawable/autoconvert"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" 
    android:debuggable="true">
    <activity
        android:name="com.example.autoconvert.MainActivity"
        android:label="@string/app_name" 
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android Processing编程将无法在设备上运行应用程序。 我该如何解决? - Android Processing programming will not run application on device. How do I fix this? 无法注册设备。 错误500 - Can't enroll device. Error 500 Android 2.3.4上的应用程序未安装&#39;错误 - Application not Installed' Error on Android 2.3.4 点击另一个启用NFC的设备后,无法进入onNewIntent。(android) - not getting to onNewIntent after tapping to another NFC enabled device.(android) 奇怪的问题-Android应用在某些设备上崩溃。 为什么? - weird issue - android app crashes at some of the device. why is it? 是否可以从Android设备发送HDMI CEC命令。 - Is it possible to send HDMI CEC commands from an Android Device. 接收中的异常:java.net.SocketException:没有此类设备。 在android组播中 - Exception in recieving: java.net.SocketException: No such device. in android multicast 在Android设备上运行时,FontMetrics不正确。模拟器很好 - FontMetrics not correct when run on android device. Simulator fine Android 附近的连接无法连接到设备。 总是返回 8011 - Android Nearby Connections cannot connect to device. Always returns 8011 我正在将我的Android手机与API 15用作测试设备。 我尝试运行此应用程序,但在加载后它就停止在我的设备上运行 - I am using my android phone with API 15 as a testing device. I try to run this application and it'stops running on my device just after it's loaded
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM