How to resolve unlinked gradle project? - gradle

First I cloned github repository on my local machine. Then open Existing Android Studio project and selected "example" folder from the repo on the local machine. Then I got:
There were two events log :
1. Unlinked Gradle project?
2. Android Framework detected
When I clicked on the link for linking to Gradle "Improt project from gradle" dialogue box opened and then I got "Resolve Error" dialogue box with error:
Could not download artifact 'gradle.jar (com.android.tools.build:gradle:0.14.4)': No cached version available for offline mode
My Android Studio version:
I have searched on the Google and stack Overflow, but can't find appropriate solution.

You can't import the Swipecards repo in Android Studio 1.0.1 using gradle.
This project is using this unsupported version of gradle-plugin.
classpath 'com.android.tools.build:gradle:0.14.4'
I suggest you cloning the repo locally changing these values: classpath 'com.android.tools.build:gradle:1.0.0' in build.gradle distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip in gradle/wrapper/gradle-wrapper.properties

Related

Gradle build failed: "Your project path contains non-ASCII characters"

I tried to build my project after updating my unity to version 2019.1. Unfortunately, it says Gradle build failed. I can't build that as internal because it's not supported anymore.
Your project folder probably in the desktop or in a non-ASCI character folder. Just make a new folder in C:// and put your project in it then re-open the project and compile.

Team Foundation Server Build errors....NuGet?

Im having build errors after building my Visual Studio Core repository from Team Foundation Server. My build order is Get Sources -> NuGet Restore, Build Solution, Publish Artifact
NuGet restore points to my NuGet.config file.
Looking at the error, it seems to me that my NuGet files are not being compiled. My Nuget files are pointing to a location in my file system. I can compile and run my program on VS but i cant successfully build using TFS.
Example errors:
project.assets.json not found, run a nuget restore to generate this file.
- After looking, I found the file in the same location it said not found?
The type or name space "System" could not be found
- Im getting this error for all 8 NuGet packages????
The NuGet.config can't be pointing to your file system if you expect the restore to work on a machine other than yours. It has to be pointing to a location that the build server can access.
I'd recommend setting up a Package Management feed containing your packages.

Cannot restore nuget packages on VSTS (Packages failed to install)

I'm using Visual Studio Team Services to build a .NET solution. I have a Nuget Installer task to restore the packages of the solution that is configured as follows:
Nuget.config file has 2 package sources - one is nuget.org (v2) and the other is a custom feed (Nuget Server v2.5.40416.9020). All packages from the nuget.org feed are restored but the ones from the custom feed are not, for each package from the custom feed there is an error message like this:
Unable to find version 'abc' of package 'xyz'
Error:
[error]Error:
C:\a_tasks\NuGetInstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.22\node_modules\nuget-task-common\NuGet\3.3.0\NuGet.exe
failed with return code: 1 [error]Packages failed to install
This was working fine 1 or 2 days ago.
Locally everything seems to work fine. Also, I tried with the nuget version 3.5.0 and a custom version of nuget.exe, without success.
Any suggestions?
I just had this error today. I fixed this error by reviewing the changes in my solution file with our base code branch and found some old lines that weren't supposed to be there. I think they were a result of a bad merge and should have been removed during a conflict resolve.
To fix the issue I simply removed the references that were old and everything built just fine.
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Services", "Services", "{EAECFF2D-7339-4180-8E1E-6DF9EC9EB131}"
EndProject
{3C14F190-6B6A-4913-9681-AFD9B62850FA} = {EAECFF2D-7339-4180-8E1E-6DF9EC9EB131}
{687ECE00-A567-40F3-BFF9-C3B639328F27} = {EAECFF2D-7339-4180-8E1E-6DF9EC9EB131}
Thanks,
Fissh

Maven configuration in Anypoint studio /ESB Mule

I am new to Maven. I tried to install maven in existing Anypoint studio (version 6.0) by following below steps.
1) Help -> Install New software -> select the site -> lookfor maven -> click Next -> Install
2) Restarted the Anypoint studio.
Now i have try to create a mule project by enabling "Use Maven". But is disabled after maven add on installation. I have clicked "configure Maven" and it asked me the maven installation directory. I dont know what is maven installatin directory.
Windows -> Preference -> Anypoint studio->Maven->entered some path in the installation directory->
Error : Value must point to the root of maven installation.
Here I have attached error screenshot. Kindly help me in this.
You need to download Maven from their website. Extract in the folder you want and reference it from Anypoint in that field
Like this
You need to point it to one folder inside.like
C:\apache-maven-3.5.0-bin\apache-maven-3.5.0 /bin should be an immediate child to Maven Home
Regards,
Amatya Annamaneni

Opening new Android project Error

I have installed ADT plugin for Eclipse Indigo, and I have not encountered any problems during installation. However once I tried to start a new android project through File > New > Android > Android project I got this error "Problem opening wizard. The selected wizard could not be started".
After checking out the details of this error I have the following error detail:
"The selected wizard could not be started.
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectWizard.
Bad version number in .class file"
Check your java version. It also happened to me and I switched from Java 1.5 to Java 1.6 in /etc/alternatives (Ubuntu).

Resources