android studio `profile or debug apk` occured IDE error - android-studio-3.0

android studio 3.0.1
I clicked 'File-> Profile or Debug APK',
but a toast showed IDE Error Occured.
The error's detail were:
How to fix? Thanks
------------------ 2017.12.05--------------
i quit my account on mac, then login Guest account.
Launch Android Studio again, NO Error Occured.
but this way is bored.

Related

How to fix an error while loading certificates in Visual Studio for iOS provisioning profiles?

The setup is: Visual Studio 2019 + Xamarin (last available updates)
The error occurs in Tools > Options > Xamarin > Apple Accounts > View Details...
"There was an error while loading your certificates: Could not load
file or assemble 'Polly, Version=7.0.0.0, ..."
I tried to remove and add again Apple Account in VS and got the same error with Polly
I had this issue. My steps to fix were to update Visual Studio and restart the PC, update XCode to 11.6 (as of 8/6/2020) and restart the Mac. After that I was able to add my developer account to VS(19)! I did not have to reinstall Polly. There were other issues, but not related to this bug.

Error HE0046. Rider fails to install iOS app

When trying to debug an iOS application in Rider (macOS) I get this error message in the run window.
error HE0046: Failed to install the app 'com.company.name' on the device 'iOS 13.5 (17F61) - iPhone 8': Failed to install the requested application
If I switch to Visual Studio it works fine. I am unable to find any more information regarding this error or why it is occuring. Anyone know why this might be happening?
One of possible ways to understand what is going on during deploy - read msbuild logs.
Go to Rider Preferences: Preferences | Build, Execution, Deployment | Toolset and Build and enable this logs there:
Then deploy the app and go to this folder and read msbuild logs. Probably there is a specific error there.
Also you can compare these logs to visual studio log. Anyway anytime you can fire an issue in Rider issue tracker:
https://youtrack.jetbrains.com/newIssue?project=Rider
I fixed my issue by re cloning my repo.

Visual Studio Mac 2019 - Xamarin.Forms wont connexct to the debugger

I have a project that wont connect to the debugger on iOS 13.3.1 and 13.4.
Specs:
Visual Studio 8.5.3 (build 16)
Xamarin.iOS 13.16
iOS (physical device): 13.4
My project builds, deploys, installs and then appears on my physical device (does not open).
Meanwhile Visual Studio is showing "Waiting to connect to debugger...." and eventually times out with "Could not connect to debugger" message.
Here is the error message from the stack trace:
error HE0032: Could not mount developer tools on 'iOS Automation': Value cannot be null.
Parameter name: array
Error message seems straight forward, but I am not sure how to handle it.
Can anyone please let me know?
Thanks.
EDIT:
Also, I have tried multiple times to Clean the solution
Close it
delete the bin and obj directories from each project
Reopen the solution.
Build each project individually - NOT rebuild solution
After all the projects are built... Then Rebuild Solution

Xamarin cannot sign into apple developer account

I am having an issue where when I attempt to sign into my apple developer account.
I go to tools > options > xamarin > apple accounts. I click on add accounts and enter the details but I get the following error:
There was an error trying to log in: A server with the specified hostname could not be found.
Has anyone encountered this issue before? How can I check the hostname its trying to resolve?
I'm running the latest version of visual studio on windows (15.9.17)
Thanks

Visual Studio Cordova, building iOS package via remote agent issues

We've been building a mobile application in Visual Studid Community 2015 using the Cordova platform with the aim to publish to Android and iOS.
Android we have no issues with but want to submit the app to Apple. The problem is that we tried setting up a remote agent the last couple of days but have ran into a brick wall.
On our Macbook Pro we've installed node latest version as we are running Cordova CLI 5.4.1. Also we've installed xCode latest version. Signed up for Apple's developer program, created a distribution profile, got our certificate etc. In other words we've ticked all the boxes.
Now the issue is once we try running the remote agent and trying to connect remotely via Visual Studio to our Mac to submit to the Apple store. If we use remote agent we get the follwoing 404 error in Mac's terminal:
GET /certs/{pin number} 200 12ms - 3.49kb
GET /modules/taco-remote 404 3ms
And in Visual Studio the following pop up:
Unable to connect to remote iOS build server. Underlying exception:
The remote server returned an error: (404) not found.
If we try to use remotebuild we get an error "error parsing JSON remotebuild.config".
We've tried finding documentation or information on either of these but everything just points back to: http://taco.visualstudio.com/en-us/docs/ios-guide/ for remote build or Visual Studio's pages on how to install and run remote agent.
We've followed those steps 10 times but just keep on getting the same error. If we try from another computer's Visual Studio we get an error "Could not resolve host" though the host name is definitely correct.
We are using Visual Studio Community 2015.
Any ideas?

Resources