I just receive errors when trying to build mobile - c#

I am new in the development in Android and i am having some problems in my learning. I am trying to build my solution in my cellphone, he is a Android of version 6.0. I fetched for some tutorials in the internet and even here in the Stack Overflow and because of it a downloaded all the versions of android sdk, since the 5.0 until the 7.1.1 and even the extra packages. Even so i continue receiving the same errors when i try to build my solution. They follow below:
FAILURE: Build failed with an exception.
Where: LuppApp
Build file 'C:\Oxaguia spk\Trabalhos\Coach IT\Visual Studio\LuppICS\SolutionLupp\LuppApp\platforms\android\build.gradle' line: 289
What went wrong: LuppApp 1
A problem occurred evaluating root project 'android'. LuppApp 1
Keystore file does not exist: c:\lupp-Release.keystore LuppApp 1
Try: LuppApp 1
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. LuppApp 1
Error: cmd: Command failed with exit code 1 Error output: LuppApp 1
FAILURE: Build failed with an exception. LuppApp 1
Where: LuppApp 1
Build file 'C:\Oxaguia spk\Trabalhos\Coach IT\Visual Studio\LuppICS\SolutionLupp\LuppApp\platforms\android\build.gradle' line: 289 LuppApp 1
What went wrong: LuppApp 1
A problem occurred evaluating root project 'android'. LuppApp 1
Keystore file does not exist: c:\lupp-Release.keystore LuppApp 1
Try: LuppApp 1
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. LuppApp 1
Picked up _JAVA_OPTIONS: -Xmx512M LuppApp 1
I will be really grateful for everyone who can help me. Thank you.

from the logs, what I see is that, you are trying to build app in release mode, Just check if you have the release-keystore file. Probably you can changed the built mode to debug since you are learning the app development.

Related

Xamarin.Forms to .NET MAUI Migration Tool Error

When I CD to my path and run "upgrade-assistant upgrade My sln here", it runs the assistant and I choose 1 (I use interactive mode as its easier to see errors) and it acts like it will convert but then it errors out with "unexpected error applying step System.UnauthorizedAccessException: Access to the path "Path to android csproj" is denied".
I have tried running PowerShell as administrator and normal multiple times with the same outcome. Any suggestions? Thank you for the help.

I'm not able to build my unity project into apk

I'm not able to build my unity project into apk, whenever i try to build it throw errors
I'm using unity 2020.3.21
I'm using api level 31 because i want to submit the update of my game on playstore and now they changed the api level to 31.
errors
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl'.
> Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with -
The other error
Could not determine the dependencies of task ':unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl'.
> Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager.
* 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 17s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
As i can see in the error it is mentioned that Build Tools revision 33.0.0 is corrupted i already renistalled using the android studio but still the same error or maybe i did it wrong. if you know anything about this error then you are welcome any help should be appericiated.
try to install via unity package manager instead of android studio since it may have different file names for the different applications
hope this helps!

Test fails in net6.0 with no info

So i started writing xunit test in net 6.0 with visual studio 2022 community preview.
Everything was working fine on the first PC.
But then when i set the dev environment on another PC (both windows 10) and i try running tests i get this :
========== Starting test run ==========
Testhost process exited with error: . Please check the diagnostic logs for more information.
Testhost process exited with error: . Please check the diagnostic logs for more information.
========== Test run aborted: 0 Tests (0 Passed, 0 Failed, 0 Skipped) run in < 1 ms ==========
With no more information. Where can i find those "diagnostic logs" i don't find info about it on the web.
I tried running tests manually in command terminal with "dotnet test" but i get this :
**dotnet test
Determining projects to restore...
All projects are up-to-date for restore.
kis-project-information-core -> D:\Users\Thomas MEDARD\Documents\Apollo\Kis\Booth\Libraries\kis-project-information\sources\binaries\net6.0\kis-project-information-core.dll
kis-project-information-unit-tests -> D:\Users\Thomas MEDARD\Documents\Apollo\Kis\Booth\Libraries\kis-project-information\sources\binaries\net6.0\kis-project-information-unit-tests.dll
Test run for D:\Users\Thomas MEDARD\Documents\Apollo\Kis\Booth\Libraries\kis-project-information\sources\binaries\net6.0\kis-project-information-unit-tests.dll (.NETCoreApp,Version=v6.0)
Microsoft (R) Test Execution Command Line Tool Version 17.0.0
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
Testhost process exited with error: . Please check the diagnostic logs for more information.
Test Run Aborted.**
I ran dotnet test -verbosity:diagnostic --diag:log.txt to see details and here is what i get
log.txt
log.host.21-11-30_10-19-44_26197_5.txt
So i see my test is detected but something is going wrong when running it
Ok so i found what is happening.
After reinstalling i thought everything worked but actually i found the same problem again.
What i realized is that i was in admin mode on my terminal. When i run the same command from non admin terminal, i get the problem explained.
So my problem is accessing to dotnet. I guess it has something to do with having my source code stored in a different drive from dotnet.
It's still weird that i can build without problem but testing need elevated privileges.

Google Cloud Platform Visual Studio Publish

I have been deploying my C# MVC application for years now, as early as yesterday, successfully. Today however I started getting this error:
Step 6/6 : RUN npm install firebase-admin
---> Running in 6af72a3f9eaf
[91m/bin/sh: 1: npm: not found
The command '/bin/sh -c npm install firebase-admin' returned a non-zero code: 127
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 127
[0m
--------------------------------------------------------------------------------
ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at https://console.cloud.google.com/cloud-build/builds/ea90f766-e252-4b9b-b707-746acf8ad686?project=186443889098 Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs for details
Failed to deploy project [Project Name] to App Engine Flex.
The logs say this:
Step 6/6 : RUN npm install firebase-admin
---> Running in 6af72a3f9eaf
/bin/sh: 1: npm: not found
The command '/bin/sh -c npm install firebase-admin' returned a non-zero code: 127
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 127
Has anyone seen this error or know whats casing it?
The problem was the node.js version was wrong. It was trying to use the wrong node version when publishing vs what was defined in the code.

Exception facing while build project

Hi I have a query when i try build a project i am facing following two errors.
Error 11 Could not copy "obj\Debug\SchoolManagementSystem.exe" to "bin\Debug\SchoolManagementSystem.exe". Exceeded retry count of 10. Failed. SchoolManagementSystem
Error 12 Unable to copy file "obj\Debug\SchoolManagementSystem.exe" to "bin\Debug\SchoolManagementSystem.exe". The process cannot access the file 'bin\Debug\SchoolManagementSystem.exe' because it is being used by another process. SchoolManagementSystem
when i restart visual studio the build is succeed but after two to three builds these again raised. If any one have solution so guid me.

Categories

Resources