Cannot build after upgrading from 1.0 to 3.3 - Android Studio

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

Related

Android VNC

A very good vnc solution that is *actually* useable....It's beyond me as to why this isnt on the market (maybe its the $25?)
Play around with it...its quite fun...
Where's the link?
Is this it: http://code.google.com/p/android-vnc-viewer/ ?
Android VNC Viewer
So last night i saw a post on googles own vnc viewer which is coded to work on the g1 and the android emulator.
Well, I forwarded my ports correctly and setup my server accordingly. I am using TightVNC as well as UltraVNC at seperate times.
I am able to establish a connection through all services on my g1, (3g edge and wifi). Only when I arrive on the connection
I am greeted with only a black screen. I switch to mouse control on my g1 by pressing trackball and can see me moving the pc mouse from my g1.
So my connection is working flawlessly but my only error is that i cant see anything on my g1.
Is there a special mirror driver i must install??? somebody please help me for i use remote desktop as a part of everyday life
Latest androidVNC viewer
As long as none of these are shown as released on http://code.google.com/p/android-vnc-viewer/ I'll keep compiling and placing them here. I'll edit this post with the current latest so it's easy for everyone to download without spending the time getting eclipse up and working.
r17 allows saving of multiple servers for quick-connect profiles.
I do not know if you need to uninstall the previous version before installing this one. I always uninstall before installing the new one with a project that changes as much as this one has recently.
Thanks buddy!
Thanks so much! I hope this app gets the development it deserves. This, and an rDesktop app are needed badly!
ultimind said:
This, and an rDesktop app are needed badly!
Click to expand...
Click to collapse
So I am not the only one who thinks this!
Android-VNC Viewer Compile?
How do I go about compiling the source code for the Android-VNC Viewer located at (http://code.google.com/p/android-vnc-viewer/).
I looked around and seen a post that said I would have to compile it on linux / mac... I do have Ubuntu setup on this machine as a separate OS but I'd rather not boot into Linux just to do that...
Anyone run native Linux that can compile the APK and add a link? If not then I will as long as I know how
just download the apk they have for download and use that.
The APK that is on there is far outdated compared to where the project currently is. For instance, there is a post that links r17's release on it which allows you to save settings, change color mode and a few other nice features... The current build is up to r28 now so I'm sure better support and newer features were added since then.
http://forum.xda-developers.com/showthread.php?p=3199765#post3199765
I think that build is only a few days old.
r31 is now the latest and the developers have released it directly:
http://android-vnc-viewer.googlecode.com/files/androidVNC_build090125.apk
They compiled it this time around so I didn't have to
Thank you! Cant wait to try it. =)
Hmmm, I tried the linked apk and it won't install. The older version still works.
I checked out the trunk but it is the same as the previous release.
I checked out the antlersoft branch but it doesn't compile: package com.antlersoft.android.dbimpl does not exist
Has anyone else tried the latest version apk or compiling?
I've tried it, and it won't connect for me. However, I haven't tried any previous versions, so I may have it set up incorrectly.
The R17 build won't work for me, so chalk it up to that. Or my stupidity.
Well I downloaded it to my laptop and then installed via adb and it worked.
Usually I download with steel and install from the sdcard. But that didn't work this time for some reason. (new JF1.41 or new vnc or user error?)
This wouldn't install for me from the sd card. Any ideas?
Yeah it wont install for me either, I tried both AppsInstaller from SDcard and adb - neither were successful... I noticed the build is now at 33, any chance we can get someone to compile it? Maybe the issue was fixed but not repacked?
There's an "official" build/apk out on http://code.google.com/p/android-vnc-viewer/. The filename calls is 090125 which, I assume, means January 25th I downloaded it and tried to install it from my phone (not via adb) and it failed to install for me (BTW, so does the -17 version in the first post). Could be that the key is installing via adb, I don't know. I'll try it later when I have a chance but I thought everyone owuld be interested in the update.
I reported this as an issue on the project, however after fully uninstalling the previous app and downloading the file directly from my G1 it installed successfully. I did not use the SDcard / AppsInstaller or ADB - I just used the traditional method of going to the site on my phone and installing it from there, after I uninstalled the previous version.
Hopefully this works for you guys as well.

[Q] How to recover deleted SDK Manager > Extras items

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.

Need Help fixing many errors in Android Studio

Hi
So I want to learn how to make Android apps in Android Atudio with Udacity's Android Fundamentals course. I have no knowledge or experience in app-development and very very veeeeerry basic programming knowledge. The problem is though that there are many error messages everywhere and I already searched on the internet a few times but have newer gotten a working answer to the problems I'm having. So I thought i could ask the people at the xda-forum for help
I am going to post the problems one after another (posting the next problem after the one before is fixed), because maybe with one answer multiple problems get fixed.
Also I completely reinstalled Android Studio just to be sure I didn't create any more problems myself.
The first problem is that there is an error message saying:
failed to find Build Tools revision and then the Version specified in the build.gradle
I know that I need to change the SDK versions in the build.gradle file but I cant find where you can look up the Build Tools Version currently installed. By the way I want to compile for android Marshmallow hoping that it also works for Android Lollipop if that helps in any way
I am thanking in advance to everyone trying to help me
Hey!
I'm also a new learner to android app development
Just wanted to know if the udacity tutorial videos are helpful?
Do they explain well?
ChahatGupta said:
Hey!
I'm also a new learner to android app development
Just wanted to know if the udacity tutorial videos are helpful?
Do they explain well?
Click to expand...
Click to collapse
I did't really come that Far in the Tutorial (because of obvios reasons) but I Can say they are really good. Easy to understand and straight forward.
DasMaennel said:
I did't really come that Far in the Tutorial (because of obvios reasons) but I Can say they are really good. Easy to understand and straight forward.
Click to expand...
Click to collapse
Thanks
I followed a lot tutorials but none of them worked out
Will try this one
Did you check on the Sdk manager whether you have the needed build tools installed?
I don't comprehend what the correct name is for s highlight this way, yet I will simply depict it.
I am utilizing android studio and I included some java classes from an alternate venture. Presently it says
"missing bundle articulation: whatever". Be that as it may, there is not alternative in the mistake popup to simply naturally include the missing bundle articulation. I know it appears to be lethargic to not sort it, but rather I get a kick out of the chance to do things rapidly.
At the point when there is a mistake this way, is there a route for android studio to naturally included the required lines of code like obscuration would?
For Windows/Linux, you can go to File -> Settings -> Editor -> General -> Auto Import -> Java and make the following changes:
change "Insert imports on paste" dropdown value to "All"
check "Add unambiguous imports on the fly" option
On a Mac, do the same thing in Android Studio -> Preferences
That way, as you type, or when you copy and paste, many imports will be added automatically. Those that aren't are ambiguous; put the cursor on the class, press alt+enter and select which version of the class you meant.

Android Studio - Stuck on “Build Gradle” when creating a new project

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

Help with Android Studio

Hi all.
I turn to you because I am really desperate.
A few years ago I decided to make a video game with the RPG Maker MV program. After finishing it, I decided to make a version for Android.
It should be noted that I am not a programmer nor do I want to publish my game, it was just for me and my friends to play.
The fact is that, after many attempts, in the end, based on trial and error, I managed to make the Android version with Android Studio.
From time to time, I have been correcting an error or bug that has appeared in my game and, to do so, I would redo the entire Android Studio thing. Once the apk was created, I downloaded it to my mobile phone, clicked on it and a message appeared saying "Do you want to install this update? No data will be lost". I gave him to accept, he settled in and everything went great.
However, yesterday, wanting to release a new update, I updated Android Studio. Initially there was no significant change. The apk was created without any problem, I downloaded it and when I clicked on it, it asked me the usual question. However, while the installation bar was filling up, a message appeared: “Application not installed. There is a conflict between the package and another package with the same name."
I've been reading somewhere that this is because I changed a signature of something, but as I said, I'm not a programmer. I have done this update as I did the others, exactly the same, so I don't know the reason. It's probably silly to change a word somewhere, but again, I'm not a programmer and would need someone to help me step by step.
If needed, I can describe step by step how I do the updated apk, if that helps.
Many thanks to all!

Categories

Resources