adb

android program hangs before onCreate is called (beginner)

时光总嘲笑我的痴心妄想 提交于 2020-01-06 05:39:07
问题 I needed some sample code to test out the AudioRecord class and I came across this website LINK TO THE SOURCE CODE However the program doesn't run, and hangs after a while. When the program starts it gives blank screen and does not do anything, and after a while a message box pops up saying the program is not responding and whether I want to close it. So I added Toast.makeText(getApplicationContext(), "HERE", Toast.LENGTH_SHORT).show(); as the first line of onCreate() in MainActivity , but

Not able to install .apks via adb

家住魔仙堡 提交于 2020-01-06 03:20:20
问题 I have been working on a particular Android application for sometime and have been able to run these apps via Android Studio quite fine before but since applying a recent update I have not been able to run the app via Android studio because of the following error: android.os.TransactionTooLargeException Error: Could not access the Package Manager. Is the system running? I have tried to troubleshoot this issue by connecting via a different TCP/IP instead of through USB (thinking it was a cable

Android keeps asking for adb permission

扶醉桌前 提交于 2020-01-06 01:30:33
问题 I have this weird issue, that whenever I connect my phone to my computer the computer will always ask for the phone's adb permission, even though I mark the "Always allow from this computer" option everytime it asks. I tried the following things, but none of them worked: Revoke USB debugging authorizations in dev options. Invalidate chaches in Android Studio (though I doubt it's a problem with the IDE). Reinstall the usb driver. Try different cables. It doesn't affect the development but it's

Connecting android emulator in another machine

一笑奈何 提交于 2020-01-05 09:35:32
问题 I need to test my android app 24h day and I have 3 ubuntu boxes to do it. I would like to connect my development system (MOTODEV Studio 1.3) to a Remote Device. Well, the interface ask me about ip for machine and port to connect to. But it doesn't. I found that the adb sever on remote seems not to listen to external ports, only internal loopback, making connections machine-machine impossible. Could it be true? If so, why there is a section on Device to connect to Android Remote Device on

Why addr2line is not able to resolve certain address to function names?

天大地大妈咪最大 提交于 2020-01-05 09:34:44
问题 I have backtraces obtained from executing the command dumpheap -n <PID> <file> . I have to convert these address to function names and line numbers to make these backtraces meaningful. I used addr2line to convert these addresses to function names. This is the command i used addr2line -C -f -e <libname>.so <address> . There are certain places where addr2line gives me $t in the place of function names but gives the filename:linenumber correctly. How should i resolve this '$t' into function name

ADB in android studio keeps showing same error message and does not start

本秂侑毒 提交于 2020-01-05 08:08:20
问题 My ADB install does not work, it does not start or show any info. I keep getting the same error message over and over again: 18:14 Unable to run 'adb': null 18:14 '/Users/jorandob/Library/Android/sdk/platform-tools/adb start-server' failed -- run manually if necessary If I try to start ADB manually it just doesn't show anything. I tried so far: Restart server Reinstall ADB Reinstall Android Studio I'm on mac os X 10.11.6 and not using any special emulator. If its helpful information, I'm

ADB in android studio keeps showing same error message and does not start

吃可爱长大的小学妹 提交于 2020-01-05 08:08:09
问题 My ADB install does not work, it does not start or show any info. I keep getting the same error message over and over again: 18:14 Unable to run 'adb': null 18:14 '/Users/jorandob/Library/Android/sdk/platform-tools/adb start-server' failed -- run manually if necessary If I try to start ADB manually it just doesn't show anything. I tried so far: Restart server Reinstall ADB Reinstall Android Studio I'm on mac os X 10.11.6 and not using any special emulator. If its helpful information, I'm

Android adb配置安装

房东的猫 提交于 2020-01-04 21:12:55
1.adb工具下载链接 链接:https://pan.baidu.com/s/1PruPEjoT3jCqi2hzpFN-eg 提取码:fjny 2、找到adb工具包里面的sdk文件下的 platform-tools,复制它的路径 3、配置系统环境变量 我的电脑–右键属性–高级系统设置—环境变量 4、找到path变量,变量值中间用英文下的分号隔开,然后粘贴platform-tools; win10可直接新建。重启电脑 5、win + r 打开运行,输入adb如图所示表示已经成功配置了adb环境 6、查看adb版本号命令 来源: CSDN 作者: 步步惊情 链接: https://blog.csdn.net/u014637710/article/details/103836715

Qt Creator doesn't find my Android device

隐身守侯 提交于 2020-01-04 18:30:13
问题 The steps I've taken so far are: Downloaded qt-opensource-windows-x86-android-5.3.0-RC.exe from http://download.qt-project.org/development_releases/qt/5.3/5.3.0-rc/ and installed it. Downloaded the Android SDK, etc., according to Creator's Android Configurations dialog: Ran my application. A dialog came up saying Device not found , and suggesting that I run adb devices to see if the device is indeed available. I ran that, but no devices were connected. 回答1: After reading this blog post, I

Installing the Android USB driver - not happening

送分小仙女□ 提交于 2020-01-04 04:20:17
问题 Using AVD, I successfully obtained the USB driver. I followed the instructions on this page USB Driver for Windows but Windows never prompted with the "Found new hardware..." message. I'm running Vista x64 SP2 and I can see the amd64 folder under ~\Android SDK\tools\usb_driver. The Manage Devices applet shows no listing for "ADB Interface" so it certainly appears that it is not there. I tried a scan for hardware changes -- nada. And running "adb devices" comes back empty (as expected). How do