I am having this error everytime,
Build was configured to prefer settings repositories over project repositories but repository 'flatDir' was added by build file 'app\build.gradle'
Error message of gradle
gradle code is as follows:
enter image description here
Sinch instructions:
[sinch instructions][2]
enter image description here
Related
When I create a project in Android Studio, Gradle can not sync the project and I receive the following error
a problem occurred configuring root project 'Github(My project name)'.
Could not resolve all artifacts for configuration ':classpath'.
Could not find bundletool-1.6.0.jar (com.android.tools.build:bundletool:1.6.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/1.6.0/bundletool-1.6.0.jar
Could not find core-proto-0.0.8-alpha04.jar (com.google.testing.platform:core-proto:0.0.8-alpha04).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/google/testing/platform/core-proto/0.0.8-alpha04/core-proto-0.0.8-alpha04.jar
Possible solution:
Declare repository providing the artifact, see the documentation at >https://docs.gradle.org/current/userguide/declaring_repositories.html
This photo is my problem
enter image description here
I am using below code to publish my artifact to maven.
I am able to access repository also I am able to publish artifacts from command line to maven repository.
even after providing correct details I am getting 401 error while publishing artifact.
plugin link: https://www.npmjs.com/package/gulp-maven-deploy
Below is code snippet.
pipe(maven.deploy({
'groupId': 'com.test',
'repositories': [{
'id': 'test',
'url': 'http://localhost/maven_repo',
'user': 'adasd',
'password': 'XXXXXX'
}]
I made a fork of the library azure-activedirectory-library-for-dotnet and tried to pack it into a nuget package but failed.
I run the following command on the Developer Command Prompt to try to pack my fork into a nuget package.
nuget Pack src\Microsoft.IdentityModel.Clients.ActiveDirectory\Microsoft.IdentityModel.Clients.ActiveDirectory.csproj
And this is the error I get when I run this command:
Unable to find 'bin\Debug\Microsoft.IdentityModel.Clients.ActiveDirectory\bin\Debug\'. Make sure the project has been built.
But the project is build succesfull and contains the following folder in the debug folder:
My fork github page
The page where the original azure project is stored: Github azure
Link to issue I created on the github page: Issue
I want to deploy my .Net project from GitHub repository to the azure server.
In Deployment options I am getting Building failed error.
Here are screen shots of my Deployment details and Logs
1- Deployment Details:
2- Activity Log:
According to your description and logs, I found you have error in MSbuild step.
The error shows some files not found in your project. I suggest you could exclude the related files in the csproj file or make sure the related files is in your project.
Besides, I suggest you could firstly clone the project to your local and test it , make sure the project could build well without any error then publish to the GitHub and deploy to the azure.
Update:
I also write a test demo on my computer and I reproduce your error.
Error image:
I think in your project you have inclued the bin and obj folder into your project and then you push the project to the github.
Like below:
After you push the project to the github, the csporj file will include all the bin and obj references.
Like below:
This is the reason about your MSBuild fail.
So I suggest you uninclude all the bin and obj folder in the local and push to the github again. Then it will work well.
Azure looks in your site/repository/packages folder for all the packages your app uses. By looking through it you will find that visual studio doesn't deploy all of the files from your local packages folder to the azure one. MSBuild needs these files when you push to git and trigger a build. Ftp into your azure site and look for the packages folder. Upload every missing file (dll) from your local folder to the azure one. This worked for me and now I can trigger a build and deployment from bitbucket to azure app service upon a push.
Additionally, if you have other projects in your VS solution and you are using VS to build those projects and then put the dll into your main projects bin folder, that will cause a missing file error also. I create a folder in my packages folder and link the dll to my main folder from there. That way when you perform the fix above, the file needed by your main project is in the packages folder also.
I hope this helps!
I created a project in AndroidStudio and I am tring to check out from github.
I select git and clone project from github. It is successed but when I open the project it is empty and sais "Error Loading Project: Cannot load 2 modules Details"