Can't push/install APK but can push txt files












0















currently I am trying to install a signed apk for testing on other emulators.
Right now I am stuck at even trying to install the apk on my fist emulator. Installing via Android Studio works fine.



Now I want to be able to push the apk file via adb on the emulator



I tried (in the folder where I have installed adb-tools):



adb install forEmulatortest.apk 


and



adb push forEmulatortest.apk /sdcard/test.apk


each time I try this, it says:



* daemon started successfully*
protocol failure


and in android studio in the debugging status line it says sth like:



ASyncSocketServer99:Error when accepting HostConnection


if I try to push just a txt file on the sdcard like so



adb push forEmulatortext.txt /sdcard/text.txt


it works fine



the other methods I found on stack Overflow till now, didn't help me:



I am working on windows 10.










share|improve this question





























    0















    currently I am trying to install a signed apk for testing on other emulators.
    Right now I am stuck at even trying to install the apk on my fist emulator. Installing via Android Studio works fine.



    Now I want to be able to push the apk file via adb on the emulator



    I tried (in the folder where I have installed adb-tools):



    adb install forEmulatortest.apk 


    and



    adb push forEmulatortest.apk /sdcard/test.apk


    each time I try this, it says:



    * daemon started successfully*
    protocol failure


    and in android studio in the debugging status line it says sth like:



    ASyncSocketServer99:Error when accepting HostConnection


    if I try to push just a txt file on the sdcard like so



    adb push forEmulatortext.txt /sdcard/text.txt


    it works fine



    the other methods I found on stack Overflow till now, didn't help me:



    I am working on windows 10.










    share|improve this question



























      0












      0








      0








      currently I am trying to install a signed apk for testing on other emulators.
      Right now I am stuck at even trying to install the apk on my fist emulator. Installing via Android Studio works fine.



      Now I want to be able to push the apk file via adb on the emulator



      I tried (in the folder where I have installed adb-tools):



      adb install forEmulatortest.apk 


      and



      adb push forEmulatortest.apk /sdcard/test.apk


      each time I try this, it says:



      * daemon started successfully*
      protocol failure


      and in android studio in the debugging status line it says sth like:



      ASyncSocketServer99:Error when accepting HostConnection


      if I try to push just a txt file on the sdcard like so



      adb push forEmulatortext.txt /sdcard/text.txt


      it works fine



      the other methods I found on stack Overflow till now, didn't help me:



      I am working on windows 10.










      share|improve this question
















      currently I am trying to install a signed apk for testing on other emulators.
      Right now I am stuck at even trying to install the apk on my fist emulator. Installing via Android Studio works fine.



      Now I want to be able to push the apk file via adb on the emulator



      I tried (in the folder where I have installed adb-tools):



      adb install forEmulatortest.apk 


      and



      adb push forEmulatortest.apk /sdcard/test.apk


      each time I try this, it says:



      * daemon started successfully*
      protocol failure


      and in android studio in the debugging status line it says sth like:



      ASyncSocketServer99:Error when accepting HostConnection


      if I try to push just a txt file on the sdcard like so



      adb push forEmulatortext.txt /sdcard/text.txt


      it works fine



      the other methods I found on stack Overflow till now, didn't help me:



      I am working on windows 10.







      android adb






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 23 '18 at 12:00









      Ina Plaksin

      18713




      18713










      asked Nov 23 '18 at 11:20









      Alexander DauerAlexander Dauer

      266




      266
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You can try with kill and start ADB manulay to resolve your issue.



          Android stop or start adb from command line



          Sometimes your android emulator might fails to connect eclipse DDMS tool and ask for adb to start manually. In that case you can start or stop the adb using the command prompt.



          Open the cmd from Start ⇒ run ⇒ cmd and execute these commands.



          Before you execute the commands in CMD make sure that you added the adb tool to your Environment Variables path.



          Killing adb



          adb kill-server


          Starting adb



          adb start-server





          share|improve this answer
























          • Working with android studio and already tried this. Did not work for me.

            – Alexander Dauer
            Nov 23 '18 at 16:33












          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%2f53445757%2fcant-push-install-apk-but-can-push-txt-files%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          You can try with kill and start ADB manulay to resolve your issue.



          Android stop or start adb from command line



          Sometimes your android emulator might fails to connect eclipse DDMS tool and ask for adb to start manually. In that case you can start or stop the adb using the command prompt.



          Open the cmd from Start ⇒ run ⇒ cmd and execute these commands.



          Before you execute the commands in CMD make sure that you added the adb tool to your Environment Variables path.



          Killing adb



          adb kill-server


          Starting adb



          adb start-server





          share|improve this answer
























          • Working with android studio and already tried this. Did not work for me.

            – Alexander Dauer
            Nov 23 '18 at 16:33
















          0














          You can try with kill and start ADB manulay to resolve your issue.



          Android stop or start adb from command line



          Sometimes your android emulator might fails to connect eclipse DDMS tool and ask for adb to start manually. In that case you can start or stop the adb using the command prompt.



          Open the cmd from Start ⇒ run ⇒ cmd and execute these commands.



          Before you execute the commands in CMD make sure that you added the adb tool to your Environment Variables path.



          Killing adb



          adb kill-server


          Starting adb



          adb start-server





          share|improve this answer
























          • Working with android studio and already tried this. Did not work for me.

            – Alexander Dauer
            Nov 23 '18 at 16:33














          0












          0








          0







          You can try with kill and start ADB manulay to resolve your issue.



          Android stop or start adb from command line



          Sometimes your android emulator might fails to connect eclipse DDMS tool and ask for adb to start manually. In that case you can start or stop the adb using the command prompt.



          Open the cmd from Start ⇒ run ⇒ cmd and execute these commands.



          Before you execute the commands in CMD make sure that you added the adb tool to your Environment Variables path.



          Killing adb



          adb kill-server


          Starting adb



          adb start-server





          share|improve this answer













          You can try with kill and start ADB manulay to resolve your issue.



          Android stop or start adb from command line



          Sometimes your android emulator might fails to connect eclipse DDMS tool and ask for adb to start manually. In that case you can start or stop the adb using the command prompt.



          Open the cmd from Start ⇒ run ⇒ cmd and execute these commands.



          Before you execute the commands in CMD make sure that you added the adb tool to your Environment Variables path.



          Killing adb



          adb kill-server


          Starting adb



          adb start-server






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 23 '18 at 12:15









          Chetan JoshiChetan Joshi

          4,02021826




          4,02021826













          • Working with android studio and already tried this. Did not work for me.

            – Alexander Dauer
            Nov 23 '18 at 16:33



















          • Working with android studio and already tried this. Did not work for me.

            – Alexander Dauer
            Nov 23 '18 at 16:33

















          Working with android studio and already tried this. Did not work for me.

          – Alexander Dauer
          Nov 23 '18 at 16:33





          Working with android studio and already tried this. Did not work for me.

          – Alexander Dauer
          Nov 23 '18 at 16: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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445757%2fcant-push-install-apk-but-can-push-txt-files%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







          這個網誌中的熱門文章

          Hercules Kyvelos

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud