I am trying to upgrade firebase crashlytics SDK, I am trying on MyProject.Android project first.
I have installed this NuGet library and all its dependencies. the build is failing with this error on output:
1>C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.D8.targets(51,5):
error MSB6006: "java.exe" exited with code
here is the content of that Xamarin.Android.D8.targets file, actually the mentioned 51 line in the error, is the line which start with "<R8" in the image:
I really need help and I do not know what I should to do.
In my case, The problem was a conflict between Xamarin.Firebase.Crashlytics and two other libraries, Xamarin..Firebase.Crash and Xamarin.Firebase.Analytics.Impl, it is solved by deleting those both libraries.
Related
I'm re-posting an issue from github (https://github.com/libffi/libffi/issues/538) I had since last week.
I'm currently having issue getting some JNA libraries built as jar deployables using Ant build script (FYI: https://github.com/thepaul/libjna-java). in order to use the APIs from this library for my other project. (The sole purpose of me going through the hassle building it is to be able to use its API. Due to lack of documentation and absence of existing build artifact provided, I had to do it myself. Importing the whole libjna repo as a project into my other project maybe another approach but I don't think it's appropriate. That said, if there're any better ways to use the libraries in libjna, do let me know!)
So here's what I did trying to build it into deployable jar file:
I already have the source project downloaded.
Tried to compile using Ant (which I downloaded the latest version) on cygwin. Failed because it requires libffi.
So I downloaded libffi source from here (https://github.com/libffi/libffi).
Tried to compile again using Ant. Failed because it couldn't find "/c/Program Files (x86)/Microsoft Visual Studio 9.0/vc/bin/cl" as mentioned in the config.log
So I inspected cc.sh and found that it refers to an older version of Microsoft Visual Studio. I have an existing installation of Visual Studio Express. So I changed the path to "C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64" in cc.sh file.
Tried to complile again using Ant. Seemed the fix worked but failed with different error because it couldn't find "mspdbcore.dll". I found this file in "..\x86" so I copy the file across to ..\x64
Tried to compile again using Ant. Failed with similar error but different file because it couldn't find "mspdb140.dll". I found this file in "..\x86" so I copied over
Tried to compile again. Failed with different error because now it says
"LINK : fatal error LNK1104: cannot open file 'LIBCMT.lib'"
, although I could confirm this file is definitely in "C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.16.27023\lib\x64"
To tackle this error I tried (in vain):
adding microsoft visual studio paths to PATH
C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64
C:\Program Files (x86)\Microsoft Visual
Studio\2017\WDExpress\VC\Tools\MSVC\14.16.27023\lib\x64
C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\Common7\IDE
Downloaded MS Visual Studio 2019 both Community and Professional (couldn't find those dlls for some reason)
Downloaded both mspdb140.dll and mspdbcore.dll separately, config.log says it can't find these files
Note I also did some research online, however:
I don't use visual studio IDE as I"m only trying to build it with Ant, so this post didn't really help much (LINK: fatal error LNK 1104: cannot open file 'LIBCMT.lib')
I don't really understand the answer to this post either (https://social.msdn.microsoft.com/Forums/en-US/cbedc1ba-c50b-499e-aa2e-12b0ce6a40ba/lnk1104-cannot-open-file-libcmtlib?forum=vclanguage)
So this is where I'm stuck.
See latest config log attached.
config.log
Also Ant build log attached.
ant_compile_error.txt
Anyone can help would be much appreciated!
Cheers
Dale
After updating to the latest USQL SDK (v 1.4.190703) we started getting the following error when trying to compile any script:
* Error : (-1,-1) 'GetVersionedSdkPath: unexpected layout of SCOPE CPP SDK. SCOPE_CPP_SDK=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\SDK\ScopeCppSDK. DATADIR=. SDK DIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\SDK\ScopeCppSDK. CppSdk.Tag=vc15.'
Details: 'A system failure has occurred during code generation.'
* Compile failed !
Execution failed !
The previous version (1.4.190528) and all other previous ones work just fine. I´ve tried changing the ScopeCppSDK environment variable to use the one from visual studio 2019, but the same happens
There seems to be an issue with the C++ SDK but I couldn´t find any newer version of it, and the release notes for the U-SQL SDK don´t specify anything in particular
Any help would be appreciated!
Can you please delete the contents of “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\SDK\ScopeCppSDK” and reinstall USQL SDK.
If this does not help, clean installation of VS/SDK should help.
Also, you should NOT set ScopeCppSDK environment variable, unless you know exactly what you are doing.
If you are using "DataPartitionedOutput" this may be the problem for VS2019 and U-SQL. Microsoft said that they will fix this in the new release in September.
Our company request Microsoft for a private fix and they give us since one of our project was depending on it.
I have an UWP app in the Windows Store, and I was now preparing an update and when I do: Project> Store> Create App Packages and when it starts the process appear 13 warnings and are almost all the same. The warning is this:
There was a conflict between two files. There was a conflict between two references with the same file name between the "WindowsMobile, Version=10.0.10240.0" and "WindowsMobile, Version=10.0.14393.0" SDKs. Choosing "C:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.Sockets.ControlChannelTriggerContract\1.0.0.0\Windows.Networking.Sockets.ControlChannelTriggerContract.winmd" over "C:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.Sockets.ControlChannelTriggerContract\2.0.0.0\Windows.Networking.Sockets.ControlChannelTriggerContract.winmd" because it was resolved first.
What error is this? How do I solve it?
I already looked for a resolution and I can not find anything. This error never appeared!
You're referencing 2 different versions of the WindowsMobile SDK:
Version=10.0.10240.0
Version=10.0.14939.0
This creates a conflict when building the solution.
Ensure that all your projects reference the same version of the SDK.
I have vs 2015 upgrade 1 installed and I try to install Xamrin from the setup, but when I try to install it, at the end receive this error message:
C#/.Net Xamarin
The installer has encountered an unexpected error installing this package. This may indicate a problem with package. The error code is 2711.
how can I solve this?
I had the same error. The error is due to old Xamarin installer files in the cache.
C#/.Net Xamarin The installer has encountered an unexpected error installing this package. This may indicate a problem with package. The error code is 2711.
I did the following steps to fix it:
Note: a folder could be hidden, so enable show hidden items in the windows explorer.
Delete any Xamarin related folders from
"C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller\14.0\installers" folder.
For example:
C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller\14.0\installers\XamarinVS
C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller\14.0\installers\XamarinVSV1
If the first step doesn't help then try to do the following below.
Delete all Xamarin related folders or files from windows temprorary folders TMP and TEMP.
You could find the temprorary folders in the Windows/Control Panel/ System/Advanced/Enviroment variables
I found that solution in comments section here:
https://blogs.msdn.microsoft.com/visualstudio/2016/03/31/mobile-app-development-made-easy-with-visual-studio-and-xamarin/#comment-142062
You can try a manual install by downloading and installing the following:
http://download.xamarin.com/XamarinforVisualStudio/Windows/Xamarin.VisualStudio_4.0.1.147.msi
Recently I am trying to compile the source code of FFTW in Visual studio 2010. I followed the instruction from the FFTW website. I downloaded the source code fftw-3.3.2.zip and corresponding vs 2010 package fftw-3.3-libs-visual-studio-2010.zip.
I got four projects from the solution, bench, benchf, libfftw-3.3, libfftwf-3.3
But on compiling I got following errors on each of the project:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targets(514,5): error MSB8008: Specified platform toolset (Windows7.1SDK) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected.
which points to the following content
I have tried the debug/release build for both x64 and win32, none of them worked.
Could anyone please help me on this?
It seems that it can be solved without installing the Windows 7.1 SDK
Right click on the 'libfftw-3.3' project and selected properties
Go to Configuration Properties -> General
Switch 'Platfrom Toolset' from 'Windows7.1SDK' to 'v100'
Recompile
Works for the projects 'libfftwf-3.3' and 'libfftw-3.3'
The project 'bench' and 'benchf' are failing to build:
fatal error C1083: Cannot open source file: '....\libbench2\aligned-main.c': No such file or directory
Can be solved by removing the aligned-main.c from both projects.
You can also use CMake - I created this CMake file for fftw-3.3.2 which I tested with Visual Studio 2010 x64:
https://bitbucket.org/Vertexwahn/cmakedemos/src/670f189321d89dbd61ddc8c446c91578305f9da2/fftw-3.3.2/CMakeLists.txt?at=default
You also need this config.h file:
https://bitbucket.org/Vertexwahn/cmakedemos/src/670f189321d89dbd61ddc8c446c91578305f9da2/fftw-3.3.2/config.h?at=default
It looks like you need to install the Windows 7.1 SDK, if you have already installed it, try reinstalling it incase it is corrupted.
You can download the 7.1 SDK from http://www.microsoft.com/en-us/download/details.aspx?id=8279