android-debug

Gradle failed to build with error Multiple dex files define

倖福魔咒の 提交于 2019-12-11 03:13:23
问题 Gradle failed to build after I added google play services gradle Dependencies I've tried both with play-services-wearable entries together and the second one excluded dependencies { compile 'com.google.android.gms:play-services-wearable:6.5.+' compile 'com.android.support:support-v13:21.0.+' wearApp project(':wear') compile 'com.google.android.gms:play-services-wearable:6.5.87' compile files('libs/crashlytics.jar') compile files('libs/cup-v1.0.0.jar') compile files('libs/support-v4-r12.jar')

ADB: How to automate complete BT Scan, pair and connect

≯℡__Kan透↙ 提交于 2019-12-08 11:06:41
问题 I am looking for Automating the below activities using ADB. Bluetooth settings -> TunrnOn BT -> Pairing (To a BT mac address which i can set) -> Connect to the BT Device on certain profiles like A2DP/HFP. I have already found here and here how to turn on and set BT to discoverable using ADB. But I am still stuck on how to make a connection request again using ADB. Would there be a way to completely automate these steps. Appreciate your valuable comments. 回答1: There is no solution possible

Google Play is showing wrong API level

放肆的年华 提交于 2019-12-08 08:30:24
问题 After uploading my APK in Google Play it shows in APK details : API levels : 14-17 and publicly showing "4.0 and up" in play store. Although my previous version has API levels 14+ but i changed my app and set following minSDK and targetSDK: <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="12" android:maxSdkVersion="17"/> But after uploading new APK GOOGLE PLAY is showing wrong API level. It shows "API levels : 14-17". I am tired about this fact. Why not it shows 11-17 and

Google Play is showing wrong API level

纵然是瞬间 提交于 2019-12-06 15:18:36
After uploading my APK in Google Play it shows in APK details : API levels : 14-17 and publicly showing "4.0 and up" in play store. Although my previous version has API levels 14+ but i changed my app and set following minSDK and targetSDK: <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="12" android:maxSdkVersion="17"/> But after uploading new APK GOOGLE PLAY is showing wrong API level. It shows "API levels : 14-17". I am tired about this fact. Why not it shows 11-17 and publicly "3.0 and up". Would anybody knows the real fact ? 来源: https://stackoverflow.com/questions/17501745

“no such table” issue in android on some devices

时光怂恿深爱的人放手 提交于 2019-12-06 11:25:03
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 as following: public class MyDatabaseHelper extends SQLiteOpenHelper { // System path of application

How to switch between lldb and GDB in Android Studio

試著忘記壹切 提交于 2019-12-04 19:44:29
问题 While trying to debug a JNI project, I see this image after choosing "run" > "edit configuration": According to NDK documents I should see and be able to choose between lldb and GDB. Does anyone know how to do this on the new Android Studio? I am asking because I do not see my break points in my native code. Here is what I have: 回答1: Try that: Open the sdk manager (Tools->android->sdk manager) then go in the tab "SDK Tools" and there check "LLDB". Then: Make sure you have selected a native

Android Facebook Integration Invalid Key hash error on Android device but working fine on Emulator

删除回忆录丶 提交于 2019-12-04 14:35:33
When I run my Android app in my android device it was working fine when I clicked first time on Continues with Facebook button.When i try to login again after logged out it is showing an error "Invalid Key has" The key has does not match any stored key hash. I have already regenerated key hash and replaced new key on facebook. bUt still did not get result. First time I had easily logged-in, But after logged out again I'm trying to Continues with Facebook but it is showing an error message "Invalid Key has": But the same application is running perfectly fine on Emulator. why it is not working

Device not Recognize AVD Device on Usb Debugging

余生长醉 提交于 2019-12-04 12:45:43
My Company launches new Android study Tab manufactured by China's company . I am facing a problem for testing my app on this Tab. I can upgrade Operating System of Tab using drivers. But I am unable to use device as a AVD. I switched on the usb debugging from Developer's option. Is there difference between drivers for upgrading operating system and using device as a AVD? how can I use my device for Debugging? OS- Jellybean 4.1, Windows 7. thanks It maybe due to adb driver for your phone is not properly installer. I recommend you to use Adb Driver Installer . It will detect any defected driver

How to write log to sd card in Android? [duplicate]

旧街凉风 提交于 2019-12-04 09:21:41
This question already has an answer here: How do I write the exception from printStackTrace() into a text file in Java? 5 answers My program is crashing in device. I want to exactly catch the log of my program while running in my device .i.e I want to write the log to my sd card, up to the point of crashing. How can I achieve this? Shini Try this Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(this)); // add this to your activity page public class ExceptionHandler implements java.lang.Thread.UncaughtExceptionHandler { private final Context myContext; private final String LINE

How to debug accessibility service?

痞子三分冷 提交于 2019-12-04 04:24:44
I have some problem with debugging AccessibilityService and can not find a solution - with every deployment/debug from Eclipse the service is not restarted automatically and it requires the manual action of restarting the service. What I am forced to do now: I am adding some new code and deploying/debugging with Eclipse. Application is deployed correctly and started but the new version of service is not started (messages from service are not shown and breakpoints are not working). I am manually opening settings -> accessibility and see that my service runs. I am manually stopping and starting