android-debug

Android studio 2.3 “Debug shows Connected and Disconnected lines but nothing in between”

早过忘川 提交于 2019-12-18 08:54:36
问题 I'm testing my app in a physical device On debug run Console $ adb push C:\Users\arjun\AndroidStudioProjects\Scol\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.arjun.scol $ adb shell pm install -r "/data/local/tmp/com.example.arjun.scol" pkg: /data/local/tmp/com.example.arjun.scol Success $ adb shell am start -n "com.example.arjun.scol/com.example.arjun.scol.login.Login" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D Waiting for application to come

Debugging with Android Studio stuck at “Waiting For Debugger” forever

懵懂的女人 提交于 2019-12-17 17:36:11
问题 UPDATE The supposed duplicate is a question on being stucking in " Waiting For Debugger " when executing Run , while this question is on being stucking in " Waiting For Debugger " when executing Debug , the steps to produce the problem is different, and the solution(s) are different as well. Whenever I try to use Android Studio's Debug function, the Run status would always stuck at: Launching application: com.astrotek.parashoot.debug/com.astrotek.ptpviewer.StarterActivity. DEVICE SHELL

Android Google Services: API key and SHA-1 fingerprint for release and debug

只谈情不闲聊 提交于 2019-12-13 03:02:19
问题 I was able to build a release-apk successfully in android studios. My app uses some services from Google like Google App Invites and Google Places for Android. To get these services, I had to register a API key on the google developers console which looks like this: I'm unsure about the package name and SHA-1 fingerprint section of getting an API key. If I have both a debug and a release version of my app (let's say the package name is com.myapp), do I put in the com.myapp as the package name

How to use getCurrencyInstance and format in low api?

浪子不回头ぞ 提交于 2019-12-12 18:23:57
问题 I am getting an error in the following code: private void displayPrice (int number) { TextView price = (TextView)findViewById(R.id.txt_price); price.setText(NumberFormat.getCurrencyInstance().format(number)); } The error I am getting is as follows: Call requires API level 24 (current min is 14): android.icu.text.NumberFormat#getCurrencyInstance Android API 24 can use this. How can I use this in low API like API 15 ? 回答1: Change your import to use java.text.NumberFormat (available from API 1)

Debugging Android native application using ndk-gdb

喜你入骨 提交于 2019-12-12 18:07:29
问题 I am trying to debug my android application having some native(c++) code using ndk-gdb in eclipse.It seems that by gdb server starts successfully from command line and is taking commands. But in eclipse it is showing this error : Error while obtaining file from device com.android.ddmlib.SyncException: Writing local file failed Any one help me please. 回答1: It seems that the framework for debugging requires an obj/local/armeabi folder. If you open the launch file for native debugging, .metadata

“no such table” issue in android on some devices

只愿长相守 提交于 2019-12-12 10:09:27
问题 I am using an external database in android app and it is working fine on all emulators and on samsung real devices. But when I am checking on the Acer smart phone, my application going crash with following exception: android.database.sqlite.SQLiteException: no such table: It is strange to me. I have checked under the data folder in file explorer where my databases and all tables are present. I am not getting why it is happening. Please guide me. Thanks in advance Code of sql helper class is

LibGDX Android blackscreens at a certain screen

孤人 提交于 2019-12-11 14:56:36
问题 To explain the Situation: I've got a LibGDX Game runnig without Problems as Desktop Project... But as soon as I install the App onto my Android device, It only shows the first screen... In this case, it is a Menu-Screen which obviously needn't much resouces...The Textures are not in resolutions of powers of two but I'm using OpenGl2.0. When I'm now changing the Screen to the actual Game-Screen, my device just blackscreens. This Screen contains a Box2d World with lots of Objects, a big Texture

My App waiting for debugger in release mode in android studio 3.1.3

只谈情不闲聊 提交于 2019-12-11 07:29:51
问题 I am an amateur in Kotlin and android studio. I am trying to integrate the facebook login to my app but end up at a roadblock. After following the facebook login for android integration tutorial, I am unable to run the app in release mode. I did previously run the same app in debug mode for debugging. But now the app on my phone says "Waiting for Debugger" in release mode too. I have done the following already and it has not worked. Set debuggable to false in release mode Restart ADB Restart

How to resolve this after successful build of app in android studio

核能气质少年 提交于 2019-12-11 06:42:41
问题 **Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex** 回答1: Step1: Modify the module-level build.gradle file to enable multidex and add the multidex library as a dependency, as shown here: android { defaultConfig { ... minSdkVersion 15 targetSdkVersion 26 multiDexEnabled true } ... } dependencies { compile 'com.android.support:multidex:1.0.1' } Step 2: If you do override the

Chrome inspect devices not showing device

陌路散爱 提交于 2019-12-11 04:37:21
问题 Sometimes when opening the Google Chrome inspect devices tab ( chrome://inspect/#devices ) the connected device is not showing, even though the debug is enabled in the device and the drivers are properly installed. What could the problem be? 回答1: Not really sure what the problem could be, but I found it useful to restart the adb server : adb kill-server adb start-server And you can then check that your device is listed by running adb devices 来源: https://stackoverflow.com/questions/40156594