I installed Android Studio 1.0 and have JDK 1.8.
I make New Project, use a 'blank activity with fragment' and set the minimum version to lollipop (5.0)
Then I go to fragment_main.xml and drag an UI element to the phone (in the example i used a button)
The moment the drag interface is visible on the phone, android studio hangs and i'm unable to do anything expect killing the process with windows taskmanager.
My mouse looks like this:
Any ideas?
Thanks.
I may have found a solution for this.
I was having the same exact issue and couldn't figure out what was going on for the life of me until:
I theorized that perhaps it was just the windows display that was frozen (the visual rendering of the Android Studio program itself) and guessed that perhaps this was using a DirectX device to do the rendering of the Android UI.
I happen to have another app running on my computer that uses a DirectX device for rendering (SimpleJungleTimer, an app I programmed with a DirectX overlay for League of Legends jungle timers). After I shut down this app Android Studio appears to be working properly (not freezing when working with the UI anymore)
Ultimately it sounds like this is a bug with Android Studio itself where they don't properly kill / reload the DirectX rendering device when it is in conflict with another app's active DirectX device (something that the android studio developers should probably fix), however until the android studio developers fix this you should be able to get around this bug by making sure any other applications that might use DirectX for rendering are shut down while coding in Android Studio so that their DirectX rendering devices don't conflict with Android Studio's DirectX device.
There are also problem with Java 8 in Mac OSX. When any drag and drop I made result in hanging the Android Studio 2.0 preview. This problem also happen to me when I use intellij 15.
You can have a look at this link: https://youtrack.jetbrains.com/issue/IDEA-146691.
I switch the JDK use in may projects to Java 7 and the drag and drop feature works. You can do the switch by choose File > Project Structure > Change in your JDK location.
Related
I'm trying to reset NativeScript Preview but after press and holding lunch icon, android system just let me move icon instead open menu. So, doing with original instruction: "Resetting the Preview app" from: https://preview.nativescript.org/#faq . Any hint?
I figured out that the problem is related to version of my Android - v.6.
This feature working in Android v.11.(I meant the press and hold app icon to open it's menu)
My old Galaxy S5 is unable to upgrade to higher version. So, I consider change to LineageOS which is quite time consuming and a bit risky process or buying new mobile with newer version o android system.
Still question is on which version started with this option.
In the latest version of Android Studio, I'm getting really bad lag when adding constraints in the Visual Layout editor when using a ConstraintLayout. It freezes for a second or two when I first click the handle to add a constraint.
I've got 12GB of Memory (out of a total of 32GB) allocated to AS, AS running on an SSD, i7 Processor running at 4.0GHz, so I know it's not my system.
Any ideas? Anyone else experienced this?
I am currently exploring same issues on Android Studio 3.0 Preview 2.
Especially when waking PC up from sleep mode and reusing Android Studio.
It starts lagging more when I have android studio and visual layout designer opened for a long time.
So, I restart Android Studio when it starts lagging or delete caches and restart and waiting for a new version of android studio.
You may apply more ram for java. Propably this is going to help a bit.
I've just gotten into developing apps for smartphones (I'm fairly adept with objective programming already and have some experience with Visual Studio) and decided to try out Xamarin. I've installed Xamarin Studio and Visual Studio 2015 Community with Xamarin without any problems. However, when I actually try to deploy the app (using the Xamarin Android API 15 emulator), a weird bug happens: the screen of the emulator gets split into 4 identical rectangles as you can see in this screenshot. The screen controls still work like they should and are in the default positions (the buttons are not on each of the 4 rectangles and in the normal position for a phone). I can unlock the emulator and launch apps like I would be able to on a correctly working emulator. I have all the prerequisites for Android API 15 installed. The app behaves similarly when I deploy it on the Xamarin Android API 21 emulator (all the prerequisites are installed). I am trying to deploy the blank Visual Studio 2015 Xamarin.Android app without any code changes.
Have you guys ever seen such a bug (or maybe a feature :) ) and do you know how to solve it?
Found the solution if anyone has the same problem: editing the emulator in the AVD to Use Host GPU fixes the issue.
I'm using Android Studio version 1.5 on my MacBook Air 13" (8 GB RAM). I'm using built-in Git feature for my project's version control. I try merge local and remote branches which contains conflicts and when I solve them and click Apply button Android Studio just freezes and I can't do anything! I've tried wait for 5 and more minutes but there's no changes: Android Studio stays freeze. However, other programs on my Mac are working good! At screen you can see what I have as a result. How can I avoid freeze? Thanks for helping
I have the same problem. It just seems there is an invisible dialog that takes the focus. Try pressing esc or enter button and then see if you can do anything.
Whenever, I take Time Picker and Date Picker in XML layout file in Android studio.
Android studio hangs out.
Which configuration changes i need to do? Please help me.
#Mayuri Joshi
Courtesy goes to #Wootowl's Answer .
I theorized that perhaps it was just the windows display that was
frozen (the visual rendering of the Android Studio program itself) and
guessed that perhaps this was using a DirectX device to do the
rendering of the Android UI.
I happen to have another app running on my computer that uses a
DirectX device for rendering (SimpleJungleTimer, an app I programmed
with a DirectX overlay for League of Legends jungle timers). After I
shut down this app Android Studio appears to be working properly (not
freezing when working with the UI anymore)
Ultimately it sounds like this is a bug with Android Studio itself
where they don't properly kill / reload the DirectX rendering device
when it is in conflict with another app's active DirectX device
(something that the android studio developers should probably fix) .
What should you do
Avoid Drag and drop Facility
Use Stable Android Studio (Like Version 1.3) Avoid Beta Version .
File -> Invalidates Caches/Restart. (After Clean and rebuild your project)