Getting an error whilebuilding my project in Android Studio - c#

I maked a clear coded working game in Unity2D, exported
it and tried to import it in android-studio-2021.2.1.15-windows. Then occured an error(the first three lines at below).
A problem occurred configuring project ':launcher'.
Could not resolve all artifacts for configuration ':launcher:classpath'.
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
How to solve it anyone can help ?

Related

Weird error: Microsoft (R) Visual C# Compiler version 3.5.0-dev-20359-01 (8da8ba0c)

I have a Unity 2020.3.22f1 project that was perfectly working at first. However, this error occured after editing and saving one of my scripts in Visual Studio (with no apparent bug in it):
I don't give details about my script or the project, because it doesn't seem to relate to the project itself or what I did, as the error appears now in all my Unity projects! I first tried to delete the script that triggered the bug, then I deleted the whole project. I even uninstalled/reinstalled Unity (different versions), Visual Studio and Unity Hub. But it seems that now I'm stuck with this forever.
Does anyone have a single clue about this? I saw one or two people having the same problem on the web, and with no other solution than formatting the hard drive. As I'm not working on my personal computer, I can't do that...I mean, there must be a rational explanation to this bug!!
I downloaded the latest version of Unity (2021.2.2f1), launched a brand new project, and the error now turned to: "The specified path can't be found" (rough translation from french), without more precision...still no idea what it means.
Ok, I found a solution from here: Unity 2019.3.0a7: Microsoft Visual C# Compiler Errors
I don't know how it's related, but it is suggested that the error can be triggered by uninstalling Anaconda and Python (which I happened to do recently), which leads to remaining artifacts in the Windows registry. I then deleted the following item in the Windows registry:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Command
Processor\AutoRun
and restarted Unity. Now it works!
Got the same issue, the problem is in an incomplete path
Command line is : "C:\Program Files\Unity\Hub\Editor\2022.1.0a13\Editor\Data\Tools\netcorerun\netcorerun.exe" "C:/Program Files/Unity/Hub/Editor/2022.1.0a13/Editor/Data/Tools/ScriptUpdater/ApiUpdater.MovedFromExtractor.exe" "Library\Bee\artifacts\mvdfrm\UnityEngine.LocalizationModule.dll_9374ECE80455BEFE.mvfrm" "C:\Program Files\Unity\Hub\Editor\2022.1.0a13\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll"
Unhandled exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\damos\project name is missing here\Library\Bee\artifacts\mvdfrm\UnityEngine.LocalizationModule.dll_9374ECE80455BEFE.mvfrm'.
This path is missing the project name between damos ans library

Error : 800700c1 in instantiating an object for Microsoft.Office.Interop.Excel.Application

I am getting the below error when instantiating the Microsoft.Office.Interop.Excel.Application() for generating Excel from the winforms app.
This was working before and suddently it stopped working eventhough there was no change in code and in version of excel. Only change I could see is there were some windows 10 updates getting installed in past weeks but I am not sure whether that was the cause for the problem
retrieving the com class factory for component with clsid {00024500-0000-0000-c000-000000000046} failed due to the following error : 800700c1.
I could see many solutions for access denied (error: 80070005 Access is denied) for the same type of operation, but none for error : 800700c1.
I am running the application in 32 bit and I have re-installed the office 2016 (32-bit) suite but still I am getting the error.
Any help in direction of solving would help.
Deleting the file "C:\Program" fixed the issue. No idea how the file was created and why deleting it solve the excel generation problem.
Just to piggyback off of Vignesh AJ's solution, this Program file seems to have appeared after a Citrix Workspace for Windows update. The file can be moved or deleted from C drive to solve the problem.
In my case c:\Program was created by Notepad++, and yes removing it did help.

How to eliminate the error "XamlParseException: Set connectionId threw an exception"?

I develop WPF Prism 6 MVVM multimodule application. Until today everything was OK. But this morning I decided to clean and rebuild my application. And after cleaning and rebuilding I have the following error when my application runs: System.Windows.Markup.XamlParseException" in PresentationFramework.dll. Set connectionId threw an exception: number of line is "5" position in line is "14". I've done all (clean and rebuild my application, e.t.c... in general everything that was suggested in the web to this case) but none of this helped me. You can see the error below.
What the reason of the error? How to eliminate it? Please help.
The "Set connectionId" is a bug in the XAML code generator. Look at this answer: https://stackoverflow.com/a/5642898/200443.
The problem can also occur if loading a Wpf related assembly fails (Xceed.Wpf.Toolkit.dll for not naming it).

Microsoft.ReportViewer.Webforms "[SerializationException] Member 'ReportServerErrorCode' was not found"

While working on a project to download and attach an Excel render of an SSRS report in a C# project using ReportViewer packages, I encountered the error:
[System.Runtime.Serialization.SerializationException] Member 'ReportServerErrorCode' was not found.
I had encountered it locally and found the fix trivial enough to not write down the solution. Upon deploying the branch to the QA server, I encountered it once more.
The solution is a little complicated. I believe that his error essentially is a one-size-fits all bucket for reporting errors when you don't have the necessary .dlls to get Report Server Error codes. The packages on NuGet have the following .dlls:
Microsoft.ReportViewer.Common
Microsoft.ReportViewer.DataVisualization
Microsoft.ReportViewer.ProcessingObjectModel
Microsoft.ReportViewer.WebForms
In my case this was an error thrown by a dataset. The only way to get to the actual error was to look at the SSRS logs.

How to solve this error in Unity? (System.Net.Sockets)

I got much help through Stackoverflow.
Recently, I checked this error when I used Unity.
SystemException: 'System.Net.Sockets' are supported only with Unity Android Pro. Referenced from assembly 'Assembly-CSharp'
To solve this error, I did it as follows :
I would open up Visual Studio and do a Find in Files for "System.Net.Sockets". The file name was 'UDPReceive.cs'.
I searched script for finding script error. But I didn't find script error.
I did find another solution. The solution is to add '#if UNITY_EDITOR' at the very top of any file that uses 'System.Net.Sockets' and '#endif' at the bottom of files. But this error occured continuingly.
I deleted 'Assembly-CSharp' file and 'UDPReceive.cs'. But this error was not solved and more errors occur X_X
So, I wanna solve this error.
Could you notify solution of this error to me?
Is there only solution using paid Android Pro?
+) My Unity Version is 4.6.3 & Unity Pro Version (Internal Develop Version)

Categories