应用安装与说QUOT;应用程序未安装" [英] App install says "Application Not Installed"

查看:152
本文介绍了应用安装与说QUOT;应用程序未安装"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,我试图与几个朋友分享,让大家可以测试它。我用这个 http://www.androiddevelopment.org/tag/apk/ 方法。该应用程序在手机上安装没有问题,但是当我在图标上实际点击来启动应用程序,它说:应用程序未安装。这是超级怪异考虑的事实,我看到它在我的应用程序列表,并没有在我的抽屉里的应用程序的图标。怎么了?我的回答是在页面的底部的问题。这是新的XML文件,它工作正常。

 <?XML版本=1.0编码=UTF-8&GT?;
<清单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
包=com.example.test
安卓版code =1
机器人:=的versionName1.0
安卓的installLocation =自动><用途-SDK
    安卓的minSdkVersion =10
    机器人:targetSdkVersion =17/><应用
    机器人:allowBackup =真
    机器人:图标=@绘制/ ic_launcher
    机器人:标签=@字符串/ APP_NAME
    机器人:主题=@风格/ AppTheme>
    <活动
        机器人:名字=。MainActivity
        机器人:标签=@字符串/ APP_NAME>
        &所述;意图滤光器>
            <作用机器人:名字=android.intent.action.MAIN/>
            <类机器人:名字=android.intent.category.LAUNCHER/>
        &所述; /意图滤光器>
    < /活性GT;    <活动机器人:名字=.SQLView机器人:标签=@字符串/ APP_NAME
        机器人:出口=假>
        &所述;意图滤光器>
            <作用机器人:名字=com.example.test.SQLVIEW/>
            <类机器人:名字=android.intent.category.DEFAULT/>
        &所述; /意图滤光器>
    < /活性GT;    <活动机器人:名字=.Add_Flashcard机器人:标签=@字符串/ APP_NAME
        机器人:出口=假>
        &所述;意图滤光器>
            <作用机器人:名字=com.example.test.ADD_FLASHCARD/>
            <类机器人:名字=android.intent.category.DEFAULT/>
        &所述; /意图滤光器>
    < /活性GT;    <活动机器人:名字=.Flashcards_List机器人:标签=@字符串/ APP_NAME
        机器人:出口=假>
        &所述;意图滤光器>
            <作用机器人:名字=com.example.test.FLASHCARDS_LIST/>
            <类机器人:名字=android.intent.category.DEFAULT/>
        &所述; /意图滤光器>
    < /活性GT;    <活动机器人:名字=.Edit_Flashcard机器人:标签=@字符串/ APP_NAME
                机器人:出口=假>
        &所述;意图滤光器>
            <作用机器人:名字=com.example.test.EDIT_FLASHCARD/>
            <类机器人:名字=android.intent.category.DEFAULT/>
        &所述; /意图滤光器>
    < /活性GT;    <活动机器人:名字=.Decks_List机器人:标签=@字符串/ APP_NAME
        机器人:出口=假>
        &所述;意图滤光器>
            <作用机器人:名字=com.example.test.DECKS_LIST/>
            <类机器人:名字=android.intent.category.DEFAULT/>
        &所述; /意图滤光器>
    < /活性GT;
< /用途>< /清单>


解决方案

我发现了什么问题。当我想应用程序直接通过Eclipse导出(还增加了密钥库和一切),我走进包选项和我在选择改名包。这显然​​没有重命名一切,这也被插入到.R我所有的类新。此外,当您重命名包,在你的类新包装的进口将保持不变。重命名时,要确保一切适当改变,因为显然这是Eclipse的一个已知的bug。这反过来又导致,因为不匹配里面的包不同的包那奇怪的错误......超级怪异。

I am developing an app and I am trying to share it with a couple of friends so they can test it. I created a key using this http://www.androiddevelopment.org/tag/apk/ method. The app installs on phone without a problem, but when I actually click on the icon to launch the app, it says "Application Not Installed". This is super weird considering the fact that I see it in my list of applications and there is an icon in my app drawer. What is happening? I answer the question at the bottom of the page. This is the new XML file that works fine.

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

<uses-sdk
    android:minSdkVersion="10"
    android:targetSdkVersion="17" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MainActivity"
        android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <activity android:name = ".SQLView" android:label ="@string/app_name"
        android:exported="false">
        <intent-filter>
            <action android:name="com.example.test.SQLVIEW" />
            <category android:name="android.intent.category.DEFAULT" />      
        </intent-filter>
    </activity>

    <activity android:name = ".Add_Flashcard" android:label ="@string/app_name"
        android:exported="false">
        <intent-filter>
            <action android:name="com.example.test.ADD_FLASHCARD" />
            <category android:name="android.intent.category.DEFAULT" />      
        </intent-filter>
    </activity>

    <activity android:name = ".Flashcards_List" android:label ="@string/app_name"
        android:exported="false">
        <intent-filter>
            <action android:name="com.example.test.FLASHCARDS_LIST" />
            <category android:name="android.intent.category.DEFAULT" />      
        </intent-filter>
    </activity>

    <activity android:name = ".Edit_Flashcard" android:label ="@string/app_name"
                android:exported="false">
        <intent-filter>
            <action android:name="com.example.test.EDIT_FLASHCARD" />
            <category android:name="android.intent.category.DEFAULT" />      
        </intent-filter>
    </activity>

    <activity android:name = ".Decks_List" android:label ="@string/app_name"
        android:exported="false">
        <intent-filter>
            <action android:name="com.example.test.DECKS_LIST" />
            <category android:name="android.intent.category.DEFAULT" />      
        </intent-filter>
    </activity>
</application>

</manifest>

解决方案

I discovered what the problem was. When I wanted to export the app directly through Eclipse(also adding the keystore and everything) I went into the packages options and I renamed the package through the options. That apparently did not rename everything and it was also inserting .R into all of my classess. Also, when you rename the package, the package import in your classess will stay the same. When renaming, be sure that EVERYTHING is changed appropriately, as apparently this is a known bug in Eclipse. This was in turn causing that weird error because of the different packages that did not match the packages inside... Super weird.

这篇关于应用安装与说QUOT;应用程序未安装&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆