During Android Studio update, it was noticed that elevator.exe (Verified publisher: JetBrains s.r.o) was installed on my computer. What is this application for and why is it required for Android Studio?
P.S - I am aware that Android Studio is Powered by the IntelliJ platform.
According to the commit history in the source code for intellij-community/bin/win/elevator.exe on Github, the very first commit (May 17, 2017) states:
Add sudo-like tool for windows to deal with UAC…
When admin user launches Intellij, Windows revokes many user
privileges to improve safety for admin users (that is how UAC works).
One can't access "Program Files": any attempt to write something there
leads on ACCESS_DENIED(5) error even if NTFS reports file is writable
The only way to elevate privileges is to launch process as elevated.
"Elevator.sln" is Win32API app that launches command as elevated. See
its sources for more info.
On Windows, application softwares (like IntelliJ or Android Studio) are limited to standard user privileges until an administrator authorizes an increase or an elevation occurs.
Since IntelliJ powers Android Studio, it makes sense for that file to show up in an Android Studio update.
Related
I am developing an app using Flutter, and I want to be able to test some functionality that behaves slightly different depending on the device directly on both an iPhone and an Android device.
I am using a Linux machine with Visual Studio Code as my main development machine (and do not want to change that), and on that machine Visual Studio Code is deploying to an Android emulator (or a real device).
Then I have a Mac, which has also got Visual Studio Code installed. I mounted the "lib" directory from the Linux machine via sshfs to the Mac (the rest of the Flutter project is just copied to there, since for example I do not want to share the build-folder). From there Visual Studio Code deploys the app to either the simulator or a real iPhone.
With this setup, whenever I change a file, Visual Studio Code on the Linux maching deploys directly to Android. However, since file system events do not get picked up on the Mac due to sshfs, Visual Studio Code on the Mac does not directly deploy. I only have to trigger a hot deployment though (which I mapped to F5), so even now it is only one keypress I have to do on the Mac.
My question is, can I somehow automate this last step? I was thinking about using ssh to connect from the Mac to Linux, and then pick up the filesystem events via inotify. But how could I then trigger a hot deployment on the Mac?
I had to switch the user account on a Windows 10 PC (a very long story). Now, I am unable to open Android app projects as Android projects. I cannot even create a new Android project. I think that I have found the culprit, but do not know how to remedy it.
Start Android Studio > Configure (under Quick Start) > Project Defaults > Project Structure > SDKs under Platform Settings:
I do not know why it shows Unknown SDK home path. This is Android Studio 3.0
Could anyone offer a tip on how to deal with this?
[Update (2017-11-27)]:
The problem has been solved by:
File > Settings > plugins > Enable "Android SPK Support" and a few other relevant plugins.
Do not know why there were disabled.
I think as it is another User on Windows, Maybe the environmental variables path setting might be in User Variables rather than on a System Variables.
Because System Variables meant for all Users whereas User Variables are restricted based on User.
I am relatively new to Android development and i recently downloaded Android Studio on my Windows 10 machine. But i am facing some problems. When i create a new project, in the activity_main.xml design tab I cannot see any virtual device. All i see is a message that says Design Editor unavailable until successful build. When I click on build,I don't see any message regarding the build in the IDE log. I have the AVD manager installed and i have also created a virtual device.
Also when i edit the RUN configuration, it asks me to select a module but in the drop down window it says no module
**Just update your repositories by clicking on install missing platforms and sync project, i hope that will help **
I am using Android Studio 2.2.3 from two user accounts on Windows 10. Whenever I update plug-ins, it doesn't seem to have updated for all users. How to move make studio point to a common folder that can contain the sdk and apply all updates there?
Android Studio SDK is usually installed under C:\Users\%USER%\AppData\Local\Android\sdk folder. If you want to access it from different user, you should consider installing it on a different drive or configure & move your current SDK to a different drive. That should do the work.
Haven't tried yet but this should surely work.
I am using Android studio version 0.4.2 and gradle version 1.9. I have successfully installed Studio and have created multiple projects. Today when I launched Studio without internet connection,
I got this error message:
"Gradle project sync failed. Basic functionality (e.g. editing,
debugging) will not work properly" and the Event Log window shows
"Failed to refresh Gradle project < Project Name >. Connection timed
out: connect. If you are behind an HTTP proxy, please configure the
proxy settings either in IDE or Gradle."
I need to know if internet connection is mandatory for building projects using gradle.
I think gradle checks for latest version on internet and throws Connection time out error. If so, is there any workaround to disable that.
Currently Android Studio's Gradle implementation requires a fast stable network connection. For whatever reason, the developers have decided to force this requirement on users at this time. There is a setting that you should be able to use to utilize a local gradle installation, but it doesn't hold. The developers know about both the network requirement and the broken switch, but are currently prioritizing other functionality. They may remove that requirement in the 1.0 or post 1.0 time frame.
[see: https://plus.google.com/u/0/115692564989237473252/posts/LGSbniYqj3Q ]
Gradle's offline mode, isn't. It should be properly named cached mode. All that switch does is tell gradle to not try to go online and instead utilize cached copies of the various networked resources. Unfortunately that assumes that you have had (and will have again) a network connection, preferably a fast stable one. Using Android Studio (last version tested 0.5.9) with a slow/unstable network results in watching Android Studio process Gradle ( and Maven ) processes usually for 2-5 minutes, sometimes for 10 minutes or more. Also at seemingly random times when coding the IDE will lock up and the cause usually involves one or more Gradle processes that have spun up.
As a comparison, using IntelliJ IDEA 13.1 Community edition (the IDE that Android Studio is based on) I compared a default "Hello Android" IDE generated program using the Android Gradle wizard (substantially similar to the only one in Android Studio) and the Ant based Android wizard. The results were as expected. The gradle based project experienced the same painful lock up and lag that projects in Android Studio exhibited. The ant based Android project was near instantaneous. No appreciable delay once the project was created and opened. Coding caused no random lockups. Testing was done on a Windows 8.1 update1 Pro machine with a dual Athlon x2 processor, 6GB RAM, and a 6Mb/0.75Mb DSL connection. I believe that last part is most likely the issue.
Unfortunately until Android Studio removes the network requirement I feel it will be unusable to a large number of developers. That's a shame because otherwise it looks to be a marked improvement over the existing Eclipse based development environment.
For me, I had to check and then uncheck the box in
Preferences->Gradle->Offline work.
Then I got back online.
You can download the gradle distribution locally and build the project again.
To do this, edit your gradle-wrapper.properties under gradle-> wrapper in your Android project.
Edit the
distributionUrl=https://services.gradle.org/distributions/gradle-2.2.1-all.zip
to
distributionUrl=file:///home/foo/downloads/gradle-2.2.1-all.zip
So just download the file from here as mentioned in your gradle-wrapper.properties.
There's an offline mode preference in Preferences > Compiler > Gradle. If you already have your dependencies downloaded, this will generally work for you.
In Android studio version 1.5.1 I could solve this error by following steps :
1) Go to file -> Settings -> HTTP Proxy -> & select Auto detect proxy settings.
2) After that you may get Dialog to accept or reject certificate
3) Select Accept.
That's it.