android-studio-2.1

Android Studio - No Target Device Found

萝らか妹 提交于 2020-05-23 04:12:03
问题 I'm having trouble getting an Android app that I developed working on my phone. ( Android Studio on Windows 7 trying to run the app on Samsung Note 3 running Android 5.0 ) Here's what I've done so far: Turned on USB debugging and allowed unknown sources Installed Google USB Driver Restarted computer Tried updating the driver for the phone but no updates were available Turned on debugging in the build.gradle file and yet it is still returning Error running app: No target device found I have

Android Studio - No Target Device Found

爷,独闯天下 提交于 2020-05-23 04:11:32
问题 I'm having trouble getting an Android app that I developed working on my phone. ( Android Studio on Windows 7 trying to run the app on Samsung Note 3 running Android 5.0 ) Here's what I've done so far: Turned on USB debugging and allowed unknown sources Installed Google USB Driver Restarted computer Tried updating the driver for the phone but no updates were available Turned on debugging in the build.gradle file and yet it is still returning Error running app: No target device found I have

Android Studio 2.1 does not show local variables when debugging

南楼画角 提交于 2020-01-24 08:37:25
问题 My AS stopped showing local variables. Currently I'm using AS 2.1, but tried AS 2.0 and AS 1.5.1. It started some time ago, I guess with the update to 2.0. I've moved to the older version but it did not help. I'm using build tools 23.0.3, and gradle 2.1.0. I've also added testCoverageEnabled false to build.gradle. There are very little info about that issue around the internet, one I've found: https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Status

Why doesn't PackageManager locate Activity from Instrumentation Registry (UI-automator)?

倖福魔咒の 提交于 2020-01-03 17:02:41
问题 Why doesn't PackageManager from Instrumentation Registry (UI-automator) locate the Activity? Intent { pkg=com.me.Activity1 } My application has 3 entry points. Three Activities, each represented by an icon. I am trying to run a ui-automator test to press an icon and launch the corresponding activity. In Android Studio 2.2, when I select app and press Run, then it runs correctly and launches the Activity. However, in ui-automator it fails both on the Nexus 5 device and in the emulator. However

Butterknife 8.1.0 not working with JDK 1.8 in Android Studio 2.1.2

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-02 03:14:08
问题 I'm fairly new to Android, Android Studio, Butterknife and the Gradle build system. However, I'm not new to Java, or programming in general. I'm trying to build an Android app with JDK 1.8 and Butterknife version 8.1.0 , but the Gradle build keeps failing, saying: Error:Could not find property 'options' on task ':app:compileDebugJavaWithJack'. Note: My project was working perfectly fine with JDK 1.8 (except for the "Instant Run" functionality) until I tried adding Butterknife. I've already

Why doesn't Android Studio accept new Java JDK location

六月ゝ 毕业季﹏ 提交于 2019-12-28 01:36:13
问题 I am trying to change the JDK location from "C:\Program Files\Java\jdk1.7.0_09" to "C:\Program Files\Java\jdk1.8.0_25", but Android Studio seems to ignore the change completely. The location remains "C:\Program Files\Java\jdk1.7.0_09". Could anyone offer a tip on how to remedy this? I have tried many times and restarted AS a few times. I must be missing something fundamental. 回答1: Try this, may be work. Android studio don't accept a SDK path that contains a whitespace. In your SDK path, there

Android studio 2.1 Unable to find toolchain of ndk-bundle

自作多情 提交于 2019-12-23 04:40:07
问题 After upgrade to Andriod studio 2.1, I run into an eror: **Error:Unable to find toolchain: <workingRoot>/Android/Sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt** and I check the directory /Android/Sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/. and there is nothing inside. I can build the project successfully before the Android studio is upgraded. Do anyone know how to rip off this error and share me your cure? Thanks 回答1: After all, I take a quick and dirty way:

Converting ActivityGroup app to use Fragments/FragmentGroup

寵の児 提交于 2019-12-21 17:28:07
问题 I have an app that I desperately need to convert from using the old ActivityGroup class to Fragments. I'm not sure how to go about it though. Below is a sample of the code I use now. Could anyone provide some insight into what steps I should take to start switching it over to use Fragments / FragmentManager instead? Main.java public class Main extends TabActivity implements OnTabChangeListener { public static TextView txtViewHeading; public static Button btnBack; public static ImageButton

Aldebaran's Pepper sdk for android/Robot sdk 0.9 “Robot SDK'0.9' is not complete. Please download it again or re-create the robot application.”

青春壹個敷衍的年華 提交于 2019-12-21 02:44:17
问题 When trying to install the android sdk for Aldebaran's pepper robot on my computer following this official tutorial: Step 1: android.aldebaran.com/doc/installation.html Step 2: android.aldebaran.com/doc/create_project.html#create-project When trying to launch the Virtual Robot Environment of Pepper's tablet on my computer this message is printed: "Robot SDK'0.9' is not complete. Please download it again or re-create the robot application." So far I have tried the following on my Ubuntu 16.04