MSB4018 The"ResolvePackageAssets" task failed unexpectedly - visual-studio-2019

When I build a project in visual studio 2019 then a error came out like this:MSB4018 The"ResolvePackageAssets" task failed unexpectedly.Then I clean the solution and build the solution again but no result.Same error arose.Please! someone help me.

Related

Android gradle not build if running the projects apps

caused by: org.gradle.workers.internal.defaultworkerexecutor$workexecutionexception: a failure occurred while executing com.android.build.gradle.internal.res.parselibraryresourcestask$parseresourcesrunnable
This is error show in the logcat windows.
please help me
I am trying to resolve this error but not solve it is expert level error also i trying to suppport design libarary import in gradle app file.

How to resolve code 9009 in Visual Studio?

I am not sure how I can resolve this error in Visual Studio 2019. When I build the script, I keep getting the error 9009. I know it has something to do with the path issue. How do I change the run path to resolve this issue?
Here is my script full path: C:\Users\Name\OneDrive - Workplace\Documents\ArcGIS\ArcPro Tools...
Error when rebuilt: The command "SubWCRev D:... exited with code 9009."
Thanks for your help!

TFS task "Run Code Analysis" displays ERROR: Browserslist: caniuse-lite is outdated. Please run: npx browserslist#latest --update-db

This error started appearing in the build task "Run Code Analysis" for a web project build. I have performed the command npx browserslist#latest --update-db, but it did not resolve the issue.
The "Run Code Analysis" appears to complete. Any suggestions on how I can get rid of the message concerning "caniuse-lite is outdated"?
##[error]ERROR: Browserslist: caniuse-lite is outdated. Please run:
ERROR: Browserslist: caniuse-lite is outdated. Please run:
##[error]ERROR: npx browserslist#latest --update-db
ERROR: npx browserslist#latest --update-db
ERROR:
ERROR: Why you should do it regularly:
ERROR: https://github.com/browserslist/browserslist#browsers-data-updating
I don't know how I can fix that with a good approach, but for now I suppressed this warning by adding the variable to AzureDevops
BROWSERSLIST_IGNORE_OLD_DATA=true.
variables:
...
- name: 'BROWSERSLIST_IGNORE_OLD_DATA'
value: true
...
This is an issue with the CSS and JS analyzers of SonarQube. It has already been fixed. The CSS analyzer has been merged into the JS analyzer since then.
The fix has been released as part of SonarJS 8.9.0.17411, which was released as part of SonarQube 9.4.
As a workaround, you can set the environment variable BROWSERSLIST_IGNORE_OLD_DATA to true. This is what the analyzer fix does, anyway, just very locally. The easiest way to set an environment variable is to create a pipeline variable of the same name. Just keep in mind that if you use NPM package browserlist in your own code, the warning will be suppressed there too.

Kotlin Multiplatform Mobile unable to run on iOS: Execution failed for task ':shared:compileKotlinIosX64'

I have created fresh project(Hello World) in KMM followed by their official website. In android it works smooth but when I am trying to run in XCode it's giving errors because of which I am unable to build / run the xcode project. I have attached screenshots and logs for my errors. Somehow xcode scheme is not getting generated in the KMM platform that's what I am guessing.
Can anyone please help me understand what am I missing?
Any help would be appriciated.
Following is my dev env:
Xcode 11.4.1
Android 4.1.2
Kotling Plugin version 1.4.30 (stable)
KMM 0.2.0```
XCode Logs:
> Task :shared:compileKotlinIosX64
Downloading native dependencies (LLVM, sysroot etc). This is a one-time action performed only on the first run of the compiler.
Extracting dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz into /Users/fatin/.konan/dependencies
e: java.lang.RuntimeException: Cannot extract archive with dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz.
> Task :shared:compileKotlinIosX64 FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:compileKotlinIosX64'.
> Compilation finished with errors
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
1 actionable task: 1 executed
Command PhaseScriptExecution failed with a nonzero exit code ```
[![enter image description here][3]][3]
I reached out to community for this and finally found the solution. Here is the link to that issue which I raised and solved this problem.
If anyone else is going through this same issue it mostly cause of corrupted kotlin file.
Also try checking your cmd line tools in XCode as per comments.
Hope this helps someone. Cheers.
If the project doesn't run right away even on opening it from Xcode and shows the shared framework is missing, Then try generating the shared framework for iOS platform using terminal. Navigate to the project folder and execute
Command: ./gradlew packForXcode Now the shared framework should have a xcode-frameworks product and you should be able to build and run the project through Xcode.
This could happen if there are two libraries, where one library was compiled against the different version of the other library than the one currently used in the project. Please check that the project configuration is correct and has consistent versions of dependencies.

Nuget package restore error in build definition

I'm getting this error when building a project​ using Visual Studio online service build:
Error:
This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ....\Attempt17\.nuget\NuGet.targets.
It is giving that nuget.target file is missing but it is already present in .nuget folder.
Any help?
You should add a "Nuget Package Restore" task to your build before you run your compilation. You no longer need a ".nuget" folder.
I had a different cause, in VSTS/Azure DevOps using "Use Nuget" first then "NuGet restore" second, on Hosted agent...the restore was throwing this error. Error began showing sometime around Feb 1, 2019.
I had to change this...
Path to solution, packages.config, or project.json: **/*.sln
to this...
Path to solution, packages.config, or project.json: **\{YOUR_SOLUTION_NAME}.sln
And the error went away.
Hope this helps!

Resources