Application not installed error Developing Android app












0














I developed an app recently and send it to a shop in our country called CafeBazaar to put it for sale but in an email they said:




we installed this app on Huawei P8lite with android 6.0 and we got
this error "Application not installed"




Now I searched a lot about this kind of error but this is very general error in my opinion and I can't determine how should solve this error



My manifest is like this:



<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>

<meta-data
android:name="firebase_crashlytics_collection_enabled"
android:value="false" />
<application
android:name="com.android.example.example.AppController"
android:allowBackup="true"
android:hardwareAccelerated="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">


I searched a lot but usually answer was put this two below attribute in your application tag on manifest:




  • android:debuggable="true"

  • android:testOnly="false"


I didn't done this yet but I want to know what should I do?










share|improve this question
























  • If you are using Android Studio try first to clean your project. If you are trying to install the apk in a real device and you has installed one time at least, try to clear the cache from this apk (you can do that in settings -> apps -> yourApp in your device) and uninstall it manually
    – Alberto Crespo
    Nov 23 '18 at 15:46










  • Hi Thanks for response I made an signed-apk version and gave them this version but they got this error
    – Benjamin Sadeghi
    Nov 23 '18 at 15:47












  • which is your minimum android version code your this apk? ( minSdkVersion )
    – Alberto Crespo
    Nov 23 '18 at 15:50










  • @AlbertoCrespo compileSdkVersion 28- minSdkVersion 21- targetSdkVersion 28- versionCode 2- versionName "1.2"-
    – Benjamin Sadeghi
    Nov 23 '18 at 15:53












  • try reading this issue with the AUTHENTICATE_ACCOUNTS for android 6.0 stackoverflow.com/questions/32601456/…
    – Alberto Crespo
    Nov 23 '18 at 15:57
















0














I developed an app recently and send it to a shop in our country called CafeBazaar to put it for sale but in an email they said:




we installed this app on Huawei P8lite with android 6.0 and we got
this error "Application not installed"




Now I searched a lot about this kind of error but this is very general error in my opinion and I can't determine how should solve this error



My manifest is like this:



<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>

<meta-data
android:name="firebase_crashlytics_collection_enabled"
android:value="false" />
<application
android:name="com.android.example.example.AppController"
android:allowBackup="true"
android:hardwareAccelerated="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">


I searched a lot but usually answer was put this two below attribute in your application tag on manifest:




  • android:debuggable="true"

  • android:testOnly="false"


I didn't done this yet but I want to know what should I do?










share|improve this question
























  • If you are using Android Studio try first to clean your project. If you are trying to install the apk in a real device and you has installed one time at least, try to clear the cache from this apk (you can do that in settings -> apps -> yourApp in your device) and uninstall it manually
    – Alberto Crespo
    Nov 23 '18 at 15:46










  • Hi Thanks for response I made an signed-apk version and gave them this version but they got this error
    – Benjamin Sadeghi
    Nov 23 '18 at 15:47












  • which is your minimum android version code your this apk? ( minSdkVersion )
    – Alberto Crespo
    Nov 23 '18 at 15:50










  • @AlbertoCrespo compileSdkVersion 28- minSdkVersion 21- targetSdkVersion 28- versionCode 2- versionName "1.2"-
    – Benjamin Sadeghi
    Nov 23 '18 at 15:53












  • try reading this issue with the AUTHENTICATE_ACCOUNTS for android 6.0 stackoverflow.com/questions/32601456/…
    – Alberto Crespo
    Nov 23 '18 at 15:57














0












0








0







I developed an app recently and send it to a shop in our country called CafeBazaar to put it for sale but in an email they said:




we installed this app on Huawei P8lite with android 6.0 and we got
this error "Application not installed"




Now I searched a lot about this kind of error but this is very general error in my opinion and I can't determine how should solve this error



My manifest is like this:



<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>

<meta-data
android:name="firebase_crashlytics_collection_enabled"
android:value="false" />
<application
android:name="com.android.example.example.AppController"
android:allowBackup="true"
android:hardwareAccelerated="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">


I searched a lot but usually answer was put this two below attribute in your application tag on manifest:




  • android:debuggable="true"

  • android:testOnly="false"


I didn't done this yet but I want to know what should I do?










share|improve this question















I developed an app recently and send it to a shop in our country called CafeBazaar to put it for sale but in an email they said:




we installed this app on Huawei P8lite with android 6.0 and we got
this error "Application not installed"




Now I searched a lot about this kind of error but this is very general error in my opinion and I can't determine how should solve this error



My manifest is like this:



<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>

<meta-data
android:name="firebase_crashlytics_collection_enabled"
android:value="false" />
<application
android:name="com.android.example.example.AppController"
android:allowBackup="true"
android:hardwareAccelerated="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">


I searched a lot but usually answer was put this two below attribute in your application tag on manifest:




  • android:debuggable="true"

  • android:testOnly="false"


I didn't done this yet but I want to know what should I do?







android manifest android-debug android-debugging






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 19:19









Zoe

11.1k73776




11.1k73776










asked Nov 23 '18 at 15:41









Benjamin Sadeghi

33




33












  • If you are using Android Studio try first to clean your project. If you are trying to install the apk in a real device and you has installed one time at least, try to clear the cache from this apk (you can do that in settings -> apps -> yourApp in your device) and uninstall it manually
    – Alberto Crespo
    Nov 23 '18 at 15:46










  • Hi Thanks for response I made an signed-apk version and gave them this version but they got this error
    – Benjamin Sadeghi
    Nov 23 '18 at 15:47












  • which is your minimum android version code your this apk? ( minSdkVersion )
    – Alberto Crespo
    Nov 23 '18 at 15:50










  • @AlbertoCrespo compileSdkVersion 28- minSdkVersion 21- targetSdkVersion 28- versionCode 2- versionName "1.2"-
    – Benjamin Sadeghi
    Nov 23 '18 at 15:53












  • try reading this issue with the AUTHENTICATE_ACCOUNTS for android 6.0 stackoverflow.com/questions/32601456/…
    – Alberto Crespo
    Nov 23 '18 at 15:57


















  • If you are using Android Studio try first to clean your project. If you are trying to install the apk in a real device and you has installed one time at least, try to clear the cache from this apk (you can do that in settings -> apps -> yourApp in your device) and uninstall it manually
    – Alberto Crespo
    Nov 23 '18 at 15:46










  • Hi Thanks for response I made an signed-apk version and gave them this version but they got this error
    – Benjamin Sadeghi
    Nov 23 '18 at 15:47












  • which is your minimum android version code your this apk? ( minSdkVersion )
    – Alberto Crespo
    Nov 23 '18 at 15:50










  • @AlbertoCrespo compileSdkVersion 28- minSdkVersion 21- targetSdkVersion 28- versionCode 2- versionName "1.2"-
    – Benjamin Sadeghi
    Nov 23 '18 at 15:53












  • try reading this issue with the AUTHENTICATE_ACCOUNTS for android 6.0 stackoverflow.com/questions/32601456/…
    – Alberto Crespo
    Nov 23 '18 at 15:57
















If you are using Android Studio try first to clean your project. If you are trying to install the apk in a real device and you has installed one time at least, try to clear the cache from this apk (you can do that in settings -> apps -> yourApp in your device) and uninstall it manually
– Alberto Crespo
Nov 23 '18 at 15:46




If you are using Android Studio try first to clean your project. If you are trying to install the apk in a real device and you has installed one time at least, try to clear the cache from this apk (you can do that in settings -> apps -> yourApp in your device) and uninstall it manually
– Alberto Crespo
Nov 23 '18 at 15:46












Hi Thanks for response I made an signed-apk version and gave them this version but they got this error
– Benjamin Sadeghi
Nov 23 '18 at 15:47






Hi Thanks for response I made an signed-apk version and gave them this version but they got this error
– Benjamin Sadeghi
Nov 23 '18 at 15:47














which is your minimum android version code your this apk? ( minSdkVersion )
– Alberto Crespo
Nov 23 '18 at 15:50




which is your minimum android version code your this apk? ( minSdkVersion )
– Alberto Crespo
Nov 23 '18 at 15:50












@AlbertoCrespo compileSdkVersion 28- minSdkVersion 21- targetSdkVersion 28- versionCode 2- versionName "1.2"-
– Benjamin Sadeghi
Nov 23 '18 at 15:53






@AlbertoCrespo compileSdkVersion 28- minSdkVersion 21- targetSdkVersion 28- versionCode 2- versionName "1.2"-
– Benjamin Sadeghi
Nov 23 '18 at 15:53














try reading this issue with the AUTHENTICATE_ACCOUNTS for android 6.0 stackoverflow.com/questions/32601456/…
– Alberto Crespo
Nov 23 '18 at 15:57




try reading this issue with the AUTHENTICATE_ACCOUNTS for android 6.0 stackoverflow.com/questions/32601456/…
– Alberto Crespo
Nov 23 '18 at 15:57












2 Answers
2






active

oldest

votes


















0














What worked for me was signing my app with both the signatures v1 and v2



enter image description here



You could try selecting one if you signed with both methods.






share|improve this answer





















  • thanks for reply i signed my apk just with V1 because some where in StackOverFlow i read that signing with both can cause problem in some phones !!?? is that true ?
    – Benjamin Sadeghi
    Nov 23 '18 at 19:31










  • Yes, it is true.
    – Lekr0
    Nov 24 '18 at 2:54



















0














After several weeks of headache i finally find solution and i put it here so if anyone had same problem can solve it.



For this problem i putted this two attribute in application tag:




  • android:debuggable="false"

  • android:testOnly="false"




and finally it solved my problem.



<application
android:name="com.android.example.example.AppController"
android:allowBackup="true"
android:debuggable="false"
android:testOnly="false"
android:hardwareAccelerated="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">





share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53449497%2fapplication-not-installed-error-developing-android-app%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    What worked for me was signing my app with both the signatures v1 and v2



    enter image description here



    You could try selecting one if you signed with both methods.






    share|improve this answer





















    • thanks for reply i signed my apk just with V1 because some where in StackOverFlow i read that signing with both can cause problem in some phones !!?? is that true ?
      – Benjamin Sadeghi
      Nov 23 '18 at 19:31










    • Yes, it is true.
      – Lekr0
      Nov 24 '18 at 2:54
















    0














    What worked for me was signing my app with both the signatures v1 and v2



    enter image description here



    You could try selecting one if you signed with both methods.






    share|improve this answer





















    • thanks for reply i signed my apk just with V1 because some where in StackOverFlow i read that signing with both can cause problem in some phones !!?? is that true ?
      – Benjamin Sadeghi
      Nov 23 '18 at 19:31










    • Yes, it is true.
      – Lekr0
      Nov 24 '18 at 2:54














    0












    0








    0






    What worked for me was signing my app with both the signatures v1 and v2



    enter image description here



    You could try selecting one if you signed with both methods.






    share|improve this answer












    What worked for me was signing my app with both the signatures v1 and v2



    enter image description here



    You could try selecting one if you signed with both methods.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 23 '18 at 19:18









    Lekr0

    334110




    334110












    • thanks for reply i signed my apk just with V1 because some where in StackOverFlow i read that signing with both can cause problem in some phones !!?? is that true ?
      – Benjamin Sadeghi
      Nov 23 '18 at 19:31










    • Yes, it is true.
      – Lekr0
      Nov 24 '18 at 2:54


















    • thanks for reply i signed my apk just with V1 because some where in StackOverFlow i read that signing with both can cause problem in some phones !!?? is that true ?
      – Benjamin Sadeghi
      Nov 23 '18 at 19:31










    • Yes, it is true.
      – Lekr0
      Nov 24 '18 at 2:54
















    thanks for reply i signed my apk just with V1 because some where in StackOverFlow i read that signing with both can cause problem in some phones !!?? is that true ?
    – Benjamin Sadeghi
    Nov 23 '18 at 19:31




    thanks for reply i signed my apk just with V1 because some where in StackOverFlow i read that signing with both can cause problem in some phones !!?? is that true ?
    – Benjamin Sadeghi
    Nov 23 '18 at 19:31












    Yes, it is true.
    – Lekr0
    Nov 24 '18 at 2:54




    Yes, it is true.
    – Lekr0
    Nov 24 '18 at 2:54













    0














    After several weeks of headache i finally find solution and i put it here so if anyone had same problem can solve it.



    For this problem i putted this two attribute in application tag:




    • android:debuggable="false"

    • android:testOnly="false"




    and finally it solved my problem.



    <application
    android:name="com.android.example.example.AppController"
    android:allowBackup="true"
    android:debuggable="false"
    android:testOnly="false"
    android:hardwareAccelerated="false"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:largeHeap="true"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    tools:ignore="GoogleAppIndexingWarning">





    share|improve this answer


























      0














      After several weeks of headache i finally find solution and i put it here so if anyone had same problem can solve it.



      For this problem i putted this two attribute in application tag:




      • android:debuggable="false"

      • android:testOnly="false"




      and finally it solved my problem.



      <application
      android:name="com.android.example.example.AppController"
      android:allowBackup="true"
      android:debuggable="false"
      android:testOnly="false"
      android:hardwareAccelerated="false"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:largeHeap="true"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"
      tools:ignore="GoogleAppIndexingWarning">





      share|improve this answer
























        0












        0








        0






        After several weeks of headache i finally find solution and i put it here so if anyone had same problem can solve it.



        For this problem i putted this two attribute in application tag:




        • android:debuggable="false"

        • android:testOnly="false"




        and finally it solved my problem.



        <application
        android:name="com.android.example.example.AppController"
        android:allowBackup="true"
        android:debuggable="false"
        android:testOnly="false"
        android:hardwareAccelerated="false"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:ignore="GoogleAppIndexingWarning">





        share|improve this answer












        After several weeks of headache i finally find solution and i put it here so if anyone had same problem can solve it.



        For this problem i putted this two attribute in application tag:




        • android:debuggable="false"

        • android:testOnly="false"




        and finally it solved my problem.



        <application
        android:name="com.android.example.example.AppController"
        android:allowBackup="true"
        android:debuggable="false"
        android:testOnly="false"
        android:hardwareAccelerated="false"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:ignore="GoogleAppIndexingWarning">






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 7 '18 at 22:16









        Benjamin Sadeghi

        33




        33






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53449497%2fapplication-not-installed-error-developing-android-app%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

            Calculate evaluation metrics using cross_val_predict sklearn

            Insert data from modal to MySQL (multiple modal on website)