Not able to download required components(ANDROID STUDIO) - android-studio

I am not able to download required components for android studio.
Every time I click download remaining components it shows:
ERROR:time out.
Further explanation is given by image.

You didn't put a Image there but normally every update & every downloadable feature could be installed manuel. So you should try to find the Updatepackage or whatever you try to install and do it alone / manuel.

Related

How do I run MyLocationDemoActivity.java?

How do I run MyLocationDemoActivity.java? I got this file from GitHub this is the link:
https://github.com/googlemaps/android-samples/tree/master
I am completely new to Android Studio, what are the steps to run this file?
On the getting started subtitle when you scroll down on the GitHub site, it tells says to create a file on the "root directory" called secure. properties. I am sorry, but I have no clue what or where the root directory is located and how to create the file. But I did get an Google Maps API key.
I also did import the project, but how do I add an emulator. I have downloaded the emulator and it works because on a different project I created a Google Maps Activity Project and just ran the sample code putting a marker on Sydney. I am not sure how to add the emulator to the project I downloaded from github though. I tried to add a template configuration for an android app, but it says no module. How do I add that? In summary, I am just looking for a step by step way to run this file.
(Also, I am sorry if this seems like a mess of questions, but I really have no idea what I am doing)
You question sounds too generic, so I will give some suggestions:
demo activity could not be run separately, you have to create a full environment of android and open the main activity, then open this demo activity
Don't use emulator for developing Map features, use a real device. In fact, I always use "Real Device" when developing, because "emulator" seems lots of bug, and its speed is very slow.
when studying a new tech/skill/feature, bit by bit. e.g.
3.1 you should know some knowlege about android main activity, android basics
3.2 play with emulator and real device, and know adb commands
3.2 play with DemoActivity
good luck!

In the new version android studio(3.2), how do I get the apk file?

In the new version android studio(3.2), how do I get the apk file(I do not want .aab) for publish? I want to publish my application in a store other than Google, but only the apk file can be released. Please help. I do not know English well. I’m sorry if something I wrote wrong
Within the "Build" menu there is a submenu "Build Bundle(s) / APK(s)". There you can just select "Build APK(s)". The resulting file will be saved in app/build/outputs/apk.
Alternatively you can use the "Generated signed Bundle/APK" wizard which can found be found in the "Build" menu as well. Just select the lower option ("APK").
You can upload anything to Google playstore either bundle or apk
see this to know more about bundle
click on build ,
then on generate signed bunde/ apk
when the popup appear select apk(at bootom)
click next
choose key store path or create new
click next
On signature version checked both the option
click finish
on event log you will see message of creation and path where it has created

Adding launch image using LaunchScreen.storyboard in xamarin.ios

I am working on Xamarin.ios and using visual studio for development. I have added LaunchScreen.Storyboard for displaying launch image as i want to target new iPhoneX device as well.
Problem that i am facing currently is, i am not able to see image on either device or simulator for launch image.
I cannot use LaunchImage.launchimage assets image approach as there is no placeholder available for iPhoneX for adding image in xamarin.
I have tried adding images in Images.xcassets folder and accessing it in storyboard. However, its just displays blank screen.
Also tried editing contents.json for adding iphoneX launch image, still no success.
Please let me know if anybody has faced same issue and resolved it.
I was also having the same issue today I have updated visual studio for mac with the latest version 7.4(build 1033).I am able to add the image to assets.xcassets now its working for me.
I have found a solution for this.
having had the same problem I was finally able to select my Image set in the drop down by making sure the Media.xcassets folder was included in the solution. By default it is not induced.
Once this was done a clean and rebuild allowed me to select the SplashImage Asset set in the drop down under the Image View properties.

Lost files for my app, but still have key. Can I still update my app?

I have an app on the google play store that's getting around 3k downloads a day. Recently I tried sharing my files through google drive and they all got screwed up and won't work in Android Studio when I open them. Is it possible for me to start from scratch and submit that update to the listing I already have? All I'd like to do is place some ads into the app
I still have the key for the file I believe.
Thanks for any help in advance!
You can still sign a new version of the app so long as you have the original key and passcode (if you used one).
Submitting successfully will also require you to have the same package name and a version number higher than your last release.
Was able to find the answer! Turns out I can create a new android studio project with the same package names and sign with the old key.

IndexNotReadyException when building the application

Writing an android application. It has no errors when I run it on an emulator. But when I tried to build it to an apk file to test on a device, I get the following error.
com.intellij.openapi.project.IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation
at com.intellij.util.indexing.FileBasedIndexImpl.handleDumbMode(FileBasedIndexImpl.java:853)
at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:802)
at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:786)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:250)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:238).......
I seen one similar case raised here which mentions to "Wait till indexing is complete."But I am not sure what I am doing to even interfere with any indexing.
Tried on different computers. Same problem. The only thing I did different before I got this error was to add a dependency at gradle(app) for a RingButton and added that RingButton class to the project to modify it to what I wanted.
As I said it is working fine in emulator.
Just to test if that is indeed the isse, I deleted the class and removed the dependency but the issue is not resolved.
I think this can be solved by creating a new project and moving the files into the new one. Maybe the index is corrupt. But before that can you clear the cache ? in android studio if your prepared to lose some local history then try this:
and then chose invalidate and restart:
I was using Dropbox to constantly backup my project every now and then. So I would click my project and send to Dropbox. I was also instantly clicking run to run the app on my emulator at the same time. During this period, when I mouse over my Dropbox icon, there is an indication that it is "Indexing".
Based on previous answer "Wait till indexing is complete", I can only assume this Dropbox indexing interfered somehow.
Not exactly elegant but I copied each and every file in this project into a New Project and everything is working fine now and able to install the apk file. I didn't change anything so I believe there is some form of corruption in the old project.

Resources