Android Studio 2.3.1 - Random Shutdown Error - android-studio-2.3

I am new to Android programming. I have an issue: my PC shutdown while I was working on a program.
When I turned it on I got all kinds of errors. I tried other programs that I created in my lesson (which I took from Internet), but none of them work now. They all give me many errors.
For example:
I think when the PC shutdown I might have lost something, but I uninstalled Android and reinstalled and I get the same thing.
Thanks for any help.

I'm fix
1. uninstall android studio
2. install new android studio and skd again
3. open android project
4. File -> Invalidate Caches / Restart

Related

Building iOS app with Xamarin and Visual Studio 2019 - Error Wrong Version of Xcode installed when it isnt

I am trying out Xamarin on the Mac. I have an oldish Mac that DID have Xcode 10.1 on it.
I tried to build the iOS app and got the following error:
Severity Code Description Project File Line Suppression State
Error The Xcode version installed on the Mac (10.1) is not compatible with this version of Visual Studio. This may cause unexpected warnings or errors when building and deploying iOS projects. Please install Xcode '11.3' or visit the documentation to learn more. 0
I upgraded the Mac to Caitlin and upgraded Xcode to 11.3.
I can connect to the Mac and actually can run the iPhone simulator with the app, however, if I run the build, I STILL get the same error, like its not figured out how to update itself?
I have done the 'forget this Mac' and even renamed it on the network in case there was some legacy in a file somewhere.
I have dumped the solution and created a new one from the templates and still get the same error ... hair being torn out...
It might be one of those things that just goes away after a while I don't know. Any ideas?
Thanks.
EDIT * I realised that I wasnt clear. I am running VS2019 on a PC connecting to my Mac.

Using Xamarin and VS15 on Mac and VM

I'm trying to do some developing with Xamarin. My setup is this:
MacBook Pro running Sierra 10.12.3
-XCode 8.2.1 installed
VMWare Fusion running Win10 VM using Bridged network connection
-Running Visual Studio 15 with Xamarin up-to-date with latest Stable release
I'm still just trying to get everything set up. Originally, I was running Yosemite, so I would get the error that I needed to Accept the XCode terms when I tried to set up my Xamarin Mac Agent, but XCode wasn't even installed (my bad). So, I updated my OS to Sierra and installed XCode. Then, I made sure on the Mac side that my account was included for Remote Login. When I try to connect, it comes back after 30 seconds or so that it "Couldn't Connect". So, if I try another account in the approved Remote Login list that I don't have the password for, it comes back right away that I have the wrong credentials. So that tells me that it must be getting thru to the Mac, but something else is wrong.
Any ideas would be great!
Thanks!
To make the connection between OS X and Windows work, you have to make sure that you're running the same version of Xamarin on both.
On OS X, you need to have Xamarin Studio with the latest stable version of Xamarin and Xamarin.iOS installed. On Windows, you need to check that you have the same version by going to About Visual Studio dialog (Help menu).

Xamarin downloading and updating error on MacOs Sierra VM

I have a MacOS Sierra VM on VMWare and I'am having problems to download from the Xamarin repositories.
When I first installed Xamarin on Mac, I did the manual install of all downloads from xamarin because the installer gave me an error.
I need to update to Xamarin.IOS 10.4.0 but it gives me an error on automatic installer and I cant download anything.
The manual installer on this page: https://store.xamarin.com/account/my/subscription/downloads
don't show the Xamarin.IOS 10.4.0 version that I need, the last it shows its 10.3.1
Im new on Mac Os but I have internet on my VM and I don't know what to do.
Any ideas?
Any help is worth. Thank you.
I found a manual installer on this url:
https://dl.xamarin.com/MonoTouch/Mac/xamarin.ios-10.4.0.123.pkg
I installed it whitout problems. I dont understand why this link isn't on: https://store.xamarin.com/account/my/subscription/downloads
i found it by myself.
The automatic installer of updates still dont working but this resolve my problem of the Xamarin.IOS 10.4.0.123 version.
Use Xamarin Studio for updates. Even if it fails to complete downloads, you can find all those URLs later in ~/Library/Caches/XamarinStudio-6.0/TempDownload/index.xml.
I also have problems with automatic updates and all the links to the latest versions are almost always missing on Xamarin's Downloads page.

Launch failed. The app could not be launched on xamarin

I am getting the following error when trying to run Visual Studio/Xamarin built application on the IOS Simulator.
Launch failed. The app 'App2' could not be launched on 'iPhone 7 Plus iOS 10.1'. Please check the logs for more details.
"App2" was created using the Tab Template, and NO code changes after rolling the application.
Windows environment: Windows 10 w/Visual Studio 2015 update 2
Mac environment: IMac Sierra fully patched. XCode 8.1 (what ever is most up to date).
I have connected the mac remote and pc. I can launch the iPhone simulator on the mac from Visual studio on the PC.
I get the error when trying to run "App2". It compiles fine, just won't run on the simulator.
I've searched here, and similar results speak of VS Crashing. Mine doesn't crash, just presents the error. NOTE: There's nothing in any log I can find with details by the way.
Ideas? Thanks!
EDIT: Just loaded up Parallels on the IMac and ran Win 10/VStudio. I get the same error. Again, xamarin remote agent connected and I can start the simulator from the PC, i just can't deploy to it.
After all the research and help from those here it comes down to a bug with the current version of Xamarin. Options are to wait until a new stable build is on the Xamarin site or get builds off of GIT. I'm choosing to wait, as I've not had great luck working with interim builds.
Xamarin that downloads with the new VS 2017 fixes this bug.

Visual Studio 2015 hangs on deploying cordova application

I'm trying to build a blank cordova application into my iPad Air 2 with Visual Studio 2015 Enterprise edition as i've already done it with success with the release candidate version.
I've got node.js v 4.2.2 on both machines since version 5.2.0 was hanging the build indefinitely, i've also got latest version of iTunes (12.3.1) as well as iOS 9.2 on the mobile device.
I've got the remote MAC set up and everything works fine for the building part, infact i've checked and the .ipa file is there at the end of the build into the folder ...\Documents\Visual Studio 2015\Projects\BlankCordovaApp1\BlankCordovaApp1\bin\iOS\Debug and if i launch that it will correctly install into iTunes and the iPad itself.
The problem is that the build action with Configuration "iOS" and "Local Device" with the iPad connected to the windows 7 PC will hang indefinitely after copying back said .ipa file after writing this line into the Build Output:
2>------ Deploy started: Project: BlankCordovaApp1, Configuration: Debug iOS ------
No matter how much time i wait it wont start the debug session even if i authorized the pc onto the iPad and have my web Inspector turned on onto the safari options. At this point i have to interrupt the build to be able to work again.
What really gets me is that if i connect the iPad to the MAC machine and build with "Remote Device" option the build works fine and i can debug remotely from my windows pc, unfortunately working like that isn't an option since the Apple machine isn't in the same room of my developing machine.
Any insight about this issue would be really appreciate, thanks in advance.
You are using a recent version of node and thus will also need to use a recent version of Cordova.
Specifically, you need to use Cordova 5.3.3 to be able to use Node.js 4.x.x+. The hang you are experiencing is exactly why. It's an incompatibility with a down stream node module and Node 4.x.x. You can downgrade to Node 0.12.x or upgrade your Cordova project to 5.3.3.
http://cordova.apache.org/news/2015/09/22/tools-release.html
Note that Node 5.x.x is only supported in Cordova 5.4.1.
This should be addressed in the latest VS Tools for Cordova Update 6. Deploying to local device is now available.
Take a look at http://microsoft.github.io/vstacoblog/2016/02/04/announcing-update-6.html.

Resources