1. Download our Official Android App: Forums for Android!

Apps What I should do to let my application run in my mobile phone

Discussion in 'Android Development' started by Marktwo, May 24, 2016.

  1. Marktwo

    Marktwo Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    20
    Joined:
    May 21, 2016

    May 21, 2016
    20
    0
    15
    Male
    Hello,
    I have install Android Studio 2.1.1 in D:/Users/....../Andoid/Android Studio/ and D:/Users/....../Andoid/sdk/.
    I have also created D:/Users/....../AndroidStudioProjects/MyApplication/ and I can see the "Android Studio
    2.1.1" window showing the mobile phone picture with "My Application" and "Hello World!"
    I then set my mobile phone "Android debugging" and "USB debugging notify" to ture, connected my mobile phone with my computer by USB (in my computer, I can see the files in my mobile phone).
    Finally, I click the Run icon in the the "Android Studio 2.1.1" window, it displayed "Select Deployment Target" window with message: "Nothing to show".
    Now, can you tell me what I should do to let my application run in my mobile phone?

    Thanks a lot for your help!
     

    Advertisement

  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,871
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,871
    11,502
    1,988
    Male
    Software developer
    South West of England
  3. Marktwo

    Marktwo Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    20
    Joined:
    May 21, 2016

    May 21, 2016
    20
    0
    15
    Male
    Thank you LV426.
    1. You think I need Google USB Driver and should not use other USB Driver?
    2. I tried to run sdk/SDK Manager.exe but got error message:
    D:/....../sdk/SDK Manager.exe is not a valid Win32 application.
    and my antivirus believe it is a virus: TR.Crypt.XPACK.Gen2
     
    #3 Marktwo, May 25, 2016
    Last edited: May 25, 2016
  4. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,871
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,871
    11,502
    1,988
    Male
    Software developer
    South West of England
    SDK Manager is usually launched from within Android Studio
    From the menu Tools -> Android -> SDK Manager
     
  5. Marktwo

    Marktwo Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    20
    Joined:
    May 21, 2016

    May 21, 2016
    20
    0
    15
    Male
    Thank you LV426.
    Following your instruction, I did Tools -> Android -> SDK Manager and found
    Android 6.0 (Marshmallow) 23 3 Installed
    What is that?
    (also a lot orther items not installed)
     
  6. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,871
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,871
    11,502
    1,988
    Male
    Software developer
    South West of England
    6.0 (Marshmallow) is the latest version of Android.

    You are free to install earlier versions of the SDK if you wish.
     
    badcatz likes this.
  7. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,871
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,871
    11,502
    1,988
    Male
    Software developer
    South West of England
    Google USB driver is what you need.
     
    badcatz likes this.
  8. Marktwo

    Marktwo Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    20
    Joined:
    May 21, 2016

    May 21, 2016
    20
    0
    15
    Male
    Thank you LV426.
    For the Google USB, in SDK Tools tab click Google USB Driver Version 11, [OK], Accept license, [Next], installing Requested Components,
    SDK Path D:\......\sdk, [Finish],
    Looks almost finished, however, at the bottom left of the window, there is a line:
    adb restart attempts: 742 (moments ago). The number 742 is increasing, looks endless!!
     
    #8 Marktwo, May 25, 2016
    Last edited: May 25, 2016
  9. Marktwo

    Marktwo Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    20
    Joined:
    May 21, 2016

    May 21, 2016
    20
    0
    15
    Male
    Thank you LV426,

    OK, it seems I have downloaded Google USB Driver:
    In Android Studio 2.1.1 window -> Tools -> Android -> SDK Manager -> "Default Settings" ->
    SDK Tools, I have found "Google USB Driver 11 Installed"
    However, when click the run button in Adroid Studio 2.1.1 window, I still got "No USB devices or running emulators detected"
    Can you tell me what I should check now?
     

Share This Page

Loading...