Android Studio creates debug apk but doesn't deploy / launch on device

I am struggling to come to terms with Andoid Studio after several years working with Eclipse. I imported the existing simple Eclipse project into AStudio 1.1.0 and even though it creates an APK

Reference C: \ DEV \ projects \ AndroidStudio \ DiddyOsmdroid \ TinyOsmdroid \ build \ from fetters \ APK

02/25/2015 17:02 176,517 TinyOsmdroid-debug-unaligned.apk

02/25/2015 17:02 176,518 TinyOsmdroid-debug.apk

It does not deploy to a tablet connected via USB. (I did it the first time, but not now). I edited the launch configurations to try "USB" and "Select." I try to deploy and run by double clicking assembleDebug as suggested in the docs. The device appears in the Android window, which displays log lines.

My gradle file looks like this:

apply plugin: 'com.android.application' android { compileSdkVersion 7 buildToolsVersion "21.1.2" defaultConfig { applicationId "osmdemo.demo" minSdkVersion 3 targetSdkVersion 3 } signingConfigs { release { storeFile file("c:/users/me/some.keystore") storePassword "xxxxxxxxxxx" keyAlias "some_alias" keyPassword "yyyyyy" } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' signingConfig signingConfigs.release } } } dependencies { compile files('libs/osmdroid-android-4.1.jar') compile files('libs/slf4j-android-1.5.8.jar') } 

I would be grateful for any suggestions.

+6
source share
1 answer

Gradle will not remove the application on the emulator / device. He will only build and install. To run the application you need to run the adb command. This is essentially what the Run button on Android Studio is for you.

0
source

Source: https://habr.com/ru/post/983000/


All Articles