favorite
I have tried different solutions but none of them seem to work for me. I have installed the latest AS on my Windows 7. Everything downloaded fine(I'm not behind any proxy) However, when I try to create a new Project, after I set the name,Activity name(which I live as default) and finish the settings, a message pops up saying "Gradle Build"; It keeps building but I don't know what it's doing.
I've tried the following steps to fix it: -Deleted .gradle so that it creates a fresh one as the original might be corrupted -Downloaded gradle manually and pointed AS to this -Downloaded gradle zip manually and put it in .gradle>wrapper>dists>2.14.1>numbers>zip file here
Any idea how to fix this?
Thanks
Related
Having problems as of late installing certain programs
So far;
Pocket CM (all versions) don't install i can choose the location (and i have tried them all) and then i get an error that it couldn't be done
Bandswitch 2.4.1 just says install was unsuccessful as I click on the cab
Mobile justice - same thing, even after installing certificate
EDIT: another one on the list Reperion same issue as Pocket CM
EDIT #2 Looks like its a problem with either my Storage Card or Transferring to it via Activesync
I have tried moving the cabs to the device and install (instead of the storage card) same thing.
Tried after soft reset..same thing
At first i was going to just go into the individual threads for help, but since its now 3 programs, something is wrong
Trying to see if i am missing anything before doing a hard reset.
Any help would be great
Hi folks!
I'm very new to android studio and android programming. I'm still mostly setting up the workspace and reading some texts to help me get started.
In the process of upgrading the packages in SDK manager a number of items became flagged as 'corrupt' (or words to that effect).
I figured the best response would be to select them via the check box then 'delete packages' - which I did. I was hoping that the SDK manager would then automatically recognize that they were missing and reload new, clean versions... But I was wrong!
They are missing completely and I'm not even sure what they were nor how many. I'm sure one was "ARM EABI..." but I don't know much else...
How do I get back the complete original listing from which I can install afresh what was missing?
Thanks for looking and any help you can give! :good:
Google "android sdk manager adding sdk packages" and the first link should help you out. Apparently, you are missing 3rd party packages and the links you provided before are no longer valid.
Hello,
Apologies if that has been answered elsewhere but I have done some searching and haven't found much which is why I came here.
So, I had created an app using Android Studio and deployed it onto my phone which is fine; it works. However, recently, my PC crashed and some data was wiped completely including the files to my app. I want to be able to extract the app files from my phone and essentially redeploy those back into Android Studio. I tried using the Android Device Manager but the supposed "/data" folder is empty. I know the app is installed on the phone's internal storage as I can see it when viewing in Application Manager.
Is there a way to redownload/rebuild those app files back into Android Studio? I am also able to attach a debug process to the app once it's running on my phone but that's about it.
Any help is appreciated!
I had the same problem. After trying numerous methods that didn't work, I realized that I had accidentally changed an option in my "Run Configuration". Here's exactly what I did to fix the issue.
1.Run --> Edit Configurations
2.With your configuration selected on the left panel (mine says "app"), in the General tab on the right panel, 3.there is a section called "Before launch". This section should have an option added called "Gradle-aware 4.Make", but I had accidentally removed it.
5.I re-added it by pressing the "+", then clicking OK in the popup (leave the input box in the popup blank).
6.Click apply.
Thank you damponting44 for the reply.
Editing this configuration seems to be for projects that exists locally on the machine. I'm trying to build/extract from my device as those files no longer exist on my machine and I am trying to get those files from my phone to Android Studio. Also, my "Before launch" setting did already have "Gradle-aware Make".
Rebuilding of existing app
Building of existing app need to be executed with right strategy to over come the parent app. Creating an app like ola, uber and other famous app needs market strategy. Finding out the drawback of the app will help you in creating a clone app.
I have upgraded from Android Studio 1.0 to 3.3.
I was building and rebuilding and flashing my software to phone very effectively on 1.0 and now after upgrade after nearly two days of work I can still not get the basics (build Android app as far as java compile errors) working.
I appologise if my questions are not perfectly formed, I am beginning to get really tired and confused and I would be so grateful of a little latitude and some help to get back to where I was.
When I installed 3.3 it recommended that it uninstall the current version, which I agreed to it doing. So fresh start I guess.
Amongst other things...
After the install, my app would not build and kept asking for a newer version of gradle. I set in settings local gradle 4.10.1 and I set the gradle plug-in to 3.3.0 in the top level gradle file. I tried setting "use default gradle wrapper" and then setting these versions in "project structure" but they kept changing back again, so I used the other method just described. It then complained it couldn't find that plugin so I added repositories google and jcentre to that file. It then began to build but complained that a version of build tools could not be installed because the license had not been accepted. I clicked on the link provided and accepted the license, but the build tools would not install, no reason.
I could not find "sdk manager" menu item anywhere in AS menu structure. Don't know why. It used to be there in 1.0.
Thinking it's a brand new install as it said I go to OS start->all programs->Android sdk tools and launch sdk manager as administrator. I install the offending build tools version accepting the license.
I rebuild, same error.
I look where that sdk manager exe was and there is no license folder in that folder nor the one above.
I root around the folder structure and find a different sdk manager under prog files (x86)\Android\android-studio\sdk and a license folder in the folder above. I run that sdk manager and install the offending build tools version accepting the license.
I go back to Android studio and click rebuild project, nothing I mean literally nothing happens, clean, nothing, make, nothing! Nothing at all! I close AS and restart it (as administrator), exact same issue. This new issue really gives me very little to work with as there is no feed back at all. I'm beginning to regret upgrading AS as it is holding me back from coding now.
I have two questions:
1) Can anyone see a possible way out of my immediate problem and how to get my project at least attempting to build again and get at least as far as just compile errors.
2) Am I right in thinking that current version of AS is far from an out of the box experience even for the common default activities (build Android java project) and has a variety of unexpected anomolies OR a lot of settings whose defaults may very likely not be useful and need manually resetting? IF SO... Is it therefore recommended I do a couple of days reading maybe about the structure of "specifically" AS and it's dependant components and how to set them up and use them effectively? IF SO... what documents would one recommend, so as to make the most efficient use of time.
Apologies if this is not well formed. Hoping for some help.
Thanks.
@hardya
I have AS installed on linux so I can't help you much with windows. I can tell you that AS 3.3 works great and is much better than 1.0. Mind you, I've been using AS since it was in beta.
Try to create a new project. If the new project is created and builds without error, then you know AS is working correctly.
If the above doesn't work then I recommend you do a full uninstall of AS and then do a fresh install as follows.
Follow this AS uninstall guide:
https://stackoverflow.com/a/39953746
Then follow this guide to install AS:
https://developer.android.com/studio/install
Then try a new project as mentioned above. If the new project goes well, then you can proceed to import the project you was working on originally.
Thank you. I think there are possibly issues with this upgrade path. It was supposed to have uninstalled completely (said it was doing so) and installed 3.3 afresh. However when you open "AS" itself it opens with the existing project in place. It is not until you close that project that it suddenly closes AS, reopens AS and enters the first startup wizard to complete the remainder of the installation / configuration.
I think I am a step further on since then.
Thanks
I have an Android APK I made in Unity I am trying to debug in Android Studio. I am not sure what is going wrong but I seem to have hit a wall. I can build the APK from Unity and install it to an Android virtual device or my phone. This works fine.
However, if I try opening the APK in Android Studio through the Profile or Debug APK option, it opens up a new project that looks like this:
https://ibb.co/njhcHR1
To fix the library error, I then select the folder that contains them. Then I go File > Invalidate Caches / Restart.
This takes me to this error if I try to click the green arrow:
https://ibb.co/DC7ppJG
https://ibb.co/1zmGd4z
Which I cannot solve. I have searched online and read people saying it's from not being synced to Gradle, but when I open APKs like this there is no Gradle included. I do have Gradle installed. I have no idea what the problem is. As you can see in Project Settings the SDK is selected.
Any thoughts or ideas?