we have a large team of developers using Android Studio for developing Android Apps. Problem that we face is:
For each new update, each developer updates through the Android Studio's Update Manager. Due to update sizes in x100 MBs or even GBs, it quickly adds up for so many developers. Is there a way to mirror the Android Studio update, so that we have one machine which updates the normal way (from Internet) and others do so over LAN from this machine? From DevOps PoV, it would help me maintain same version of Android Studio and its components on all machines.
Related
I want to develop an app for an old tablet using API 7 Android Eclair 2.1, but I'm facing problems setting up all the tools needed.
I tried using Android Studio, but when creating a new app, the lowest API I can choose is 14, and when I change it via code, it complains about the libraries being not compatible.
I also tried importing some samples, but it tries to download some old version of gradle and apparently the link is down.
I recall that prior to Android Studio, one would use Eclipse, but it seems that it is no longer available.
Is it possible to set up a development environment, or am I better to code from scratch and compile it myself?
I 'm just getting started with Unity 3D and I 'm going through android games development learning and I wonder how to setup Unity to work with android studio ?
For the majority of your tasks, you will not be working in Android Studio. You will be working directly in Unity. The only reason you would need to work in Android Studio would be to create native plug-ins for additional functionality that is not provided in the Unity Engine.
A detailed description of the requirements to build for Android are available in the Unity3D documentation. An abbreviated description:
When you are ready to test on your device, you will build for Android: File>Build Settings, and select Android from the list
You will need to have the Android SDK installed, and have at least one API Level installed using the Android SDK Manager (minimum).
In Edit>Project Settings>Player Settings, open Other Settings. Choose the Minimum API Level for your game. This API level must be installed using the Android SDK Manager
Finally, When you've finished building, you will have a .APK file.
You can copy to your Android device, and install with a file manager. -OR-
You can install it on an Android Emulator.
I hope this helps in some way!
Has anyone been able to upgrade from within the Android Studio Preview (canary channel) to Android Studio beta or do you have to start with a fresh beta install?
You cannot upgrade Android Studio Preview to Beta. These are two different products. You have to uninstall the preview and install the beta. It was straitforward for me. Beta setup can even import Preview settings. I just had to update my build.gradle file (on a small project) since I also downloaded API 20. It was not more painfull than an ordinary canary update of Android Studio Preview after all ;)
This page may be usefull for a step by step Android Studio Beta installation guide: http://bugapart.blogspot.fr/2014/06/install-android-studio-beta-for-dummies.html
As Dazzibao said, you cannot. However I would like to point out that I can't seem to find the Preview version being advertized for download anywhere on Google's site anymore. It would seem to me then that it IS recommended to upgrade to Beta as soon as possible if you're already on the Preview build. I would have posted a comment to reply directly to amchang87's comment on going against recommending it, but I simply don't have the rep yet.
I'm swapping mine out as I type this.
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.
It seems to be easy enough to create Android and IOS apps on Xamarin in Visual Studio, but I can't see how to create OSX apps.
On the Xamarin download page for Windows/VS it states that this "Includes the following: Mac - Develop Apps with Xamarin.Mac". There is no option to create an OSX/Mac project
Apologies if I'm being dense but I am going round in circles here and always end up with information on creating IOS apps. I know I can create apps using Xamarin Studio on the Mac but that isn't ideal.
It wasn't possible before, but it is possible now with Xamarin for Visual Studio 4.2. The support is limited to certain project types though. More information is available in the blog post.