Android: Errors occured during the build? - java

I am attempting to run DEXguard on my simple android application.
I have taken the step of adding it's JAR file into the dropins directory in my
Eclipse ADT bundle.
However now whenever I open eclipse I get this error:
Errors occurred during the build.
Errors running builder "Android optimizer and obfuscator (Dexguard) on project 'test'.
com/android/sdklib/util/GrabProcessOutput$IPProcessOutput
Anytime I try to run any project within eclipse this happens.
What can I do to fix this problem?
EDIT: I have already re-installed eclipse and updated my sdk

Such an error is a sign that you're combining the DexGuard plugin with an incompatible version of the Android plugin in Eclipse. You should check the compatible version numbers that are documented in the DexGuard manual. Upgrading both plugins to the latest versions should work.

Related

Configuring maven with Anypoint Studio

I am trying to setup Anypoint Studio 6.6 on my MacBook, I have been using it on windows and it works fine. I have installed Java 8 and Maven 3.6.3 and I have also set up the environment variables so I can use java and maven on the terminal and the works good. On preferences, the Installed JREs and classpath variables are all pointing to the JDK but when I try to run a project with maven, I get the error - There was an error running the studio:studio goal on project projectname.
I updated the settings.xml as instructed by the documentation https://docs.mulesoft.com/mule-runtime/3.9/configuring-maven-to-work-with-mule-esb, but I am still getting this error. How can I fix this please?
Those instructions are to set Maven to work with Mule. You also need to point Studio to your Maven installation, which I suspect you already did. For the error related to studio:studio, you should have pasted the complete error in the question, however I guess you need to add the plugins repository: https://stackoverflow.com/a/24557069/721855

You are currently using tooling API version 2.2.1. You should upgrade your tooling API client to version 3.0 or later

I have created gradle project from here and while importing Gradle(STS) from eclipse I am getting error and image of error log is
So, I am not able to import my project. any suggestion?
I know its quite a late response. But, It might help others.
Download Gradle Zip from Gradle website
Open your eclipse Preferences
Select Gradle STS -> choose your gradle directory
This solved mine.
Apologies for unable to reproduce this issue in my Eclipse or STS IDE. But, I have faced this issue in my IntelliJ IDE. The updated version of the IDE resolved this issue.
https://www.jetbrains.com/idea/download/#section=windows

Android Studio gradle wrong version

Updated Android studio.
Downloaded Gradle. Changed Gradle folder in PC's environmental settings.
In computer, gradle -version returns Gradle 4.4.1.
In Android Studio, returns Gradle 3.5
Smart Android IDE refuses to recognise gradle and I can't compile.
It even gives the wrong error message
Minimum supported Gradle version is 4.1. Current version is 3.5. If using the gradle wrapper, try editing the distributionUrl in C:\xxxxxx\gradle\wrapper\gradle-wrapper.properties to gradle-4.1-all.zip
I have tried restarting, invalidate and restart. Nothing works.
How to fix it?
You need to go to
File->Settings->Build,Execution,Deployment->Gradle
Then tick User local gradle distribution and set the path to your local gradle
Fixed it by restarting the computer.
Restarting the IDE is not good enough. After restarting computer and going into Android Studio's terminal, typing in gradle -version shows the correct version. That's when I know it'd work. Sure enough, gradle commands now work.
Answered this just to show how genius the IDE written by geniuses is.
I check android studio offical web, android studio IDE now support version just to gradle-4.1.
I think you can go to gradle-wrapper.properties, and change to distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
or
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip
, maybe it can solve the problem.
Reference site:
https://developer.android.com/studio/releases/gradle-plugin.html
I faced this problem and i had fixed it. first goto https://services.gradle.org/distributions/gradle-4.10.1-all.zip and download it locally. Goto File->Settings->Build,Execution,Deployment->Gradle and select "Use local gradle" and set local gradle path that you downloaded just.
gradle path

Eclipse to Android Studio - Gradle Issue

I receive errors when trying to import my Cordova based, eclipse exported "build.gradle" file, when importing into Android Studio:
"Gradle version 1.6 is required. Current version is 1.9"
However, upon changing the version using a local gradle distribution I receive the following:
"You are using an old, unsupported version of Gradle. Please use version 1.8 or greater."
Anyone have any ideas how to resolve this?
Stumbled upon the same issue, you should check this link where everything is pretty well explained:
http://rexstjohn.com/exporting-android-project-eclipse-android-studio-0-4-0/

Error importing project with Eclipse: JavaCC

I am getting this error everytime I want to import some maven projects in Eclipse:
I already installed JavaCC plugin and CheckStyle for Eclipse, yet I can't pass this because if I finish by resolving later, many projects won't show or do not detect source folders.
Any Ideas?
You can try installing the m2e javacc connector from https://github.com/objectledge/maven-extensions.
The connector is described at http://objectledge.org/confluence/display/TOOLS/javacc-maven-plugin+connector
The stable p2 update site is at : http://objectledge.github.com/maven-extensions/connectors/updates/milestones
Could not install that plugin in Eclipse Neon ...
while the javacc-maven-plugin also provides the dependencies.

Categories