Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
149 views
in Technique[技术] by (71.8m points)

android - App not installed

I'm having problems when i try to install my apk in release mode, if I donwload the debug file, it works ok, but if I try to install the release file, it just says me "App not installed", image:

app not installed

that is my manifest file:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="PACKAGE" >

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

    <application
        android:allowBackup="true"
        android:icon="@mipmap/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=".ReportActivity"
            android:label="@string/title_activity_report" >
        </activity>

        <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
        <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="@string/google_maps_key"/>

        <service
            android:name=".Services.PositioningService"
            android:enabled="true"
            android:exported="true" >
        </service>

        <receiver
            android:name=".Receiver.PositioningBroadcastReceiver"
            android:enabled="true"
            android:exported="true" >
        </receiver>


    </application>

</manifest>

I had already checked this link, but it didn't work! App Not Installed error Thank you folks!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If you installed debug build in your mobile.. then you need to uninstall it and install signed build.

If it still not installed then your Application related data might be still there in your memory.. ex) if you created any DB from your Application then you need to delete that from memory and try to install your signed build again.

If it still not installed and if you are using lollipop devices.. your Application might be installed in other users account too.. you to switch to other users and go to Settings->Apps->your_application and uninstall it. even check Guest user. your application might be hiding in that too..

I had this issue.. just follow these steps.. then your application can be installed.. :)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...