I am getting the following error when trying to install DEXguard onto a simple application within Eclipse:
Errors occurred during the build.
Errors running builder 'Android Optimizer and Obfuscator (DexGuard)' on project 'test'.
com/android/sdklib/util/GrabProcessOutput$IProcessOutput
This error occurs when I try to run the app.
Also all of the other projects in my Ecipse have the red exclaimation mark error, what is the issue here?
EDIT: I removed the red exclaimation mark error but removing Android dpendencies from the build path, however the original error is still persisting when I attempt to run the project.
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
I am facing a problem when I open my android project. It has been since a while I haven't deal with my project. But I face different error when I change android studio version or gradle version. Sometimes I face Aapt2 error other time I face android resource complication in values folder. How do I get the exactly android studio and gradle version to open my project so as I can make some modification
Regarding Aapt2
Aapt2 is enabled by default when you use android plugin for gradle 3.0.
This is to
improve incremental resource processing
as stated here.
But if you are facing issues with it, you can switch back to previous version by adding this in gradle.properties
android.enableAapt2=false
Non-ascii characters issues have been fixed in AAPT2 and android gradle plugin now (yay!). Instead of disabling AAPT2 now you can just use android gradle plugin version 3.2.0-alpha11 or newer and you should not encounter this error anymore.
Regarding Android resource compilation
Make sure you have no error in your ids.xml file.
I just updated my Android Studio 135.14 etc to 135.15.
First, I get an SDK not found error, since now the SDK cannot be in the Android Studio folder any more due to checksum problems. I fixed this as instructed, but now when I try to run my app I get the following message.
Failed to complete Gradle execution.
Cause: tried to access method
com.google.common.base.Stopwatch.()V from class
com.android.tools.idea.gradle.invoker.GradleTasksExecutor$3
I've already tried a clean and to delete .gradle from home. I don't see anything in build.gradle that has anything remotely to do with this and I am unsure on how to proceed.
I am not familiar with gradle at all since it just worked for months until the update.
Whenever I try to run a gradle sync on my project i keep getting this error:
Failed to refresh Gradle project 'MeetupVersion1.0'
Unable to load class 'org.gradle.plugins.ide.internal.IdeDependenciesExtractor$IdeDependency'.
How do I fix this error? Do I have to import this class or does it have to do with my Android Studio?
This tends to happen when you're trying to use a build file that specifies a version of the Android Gradle plugin that's too new for the given version of Android Studio to handle. I'd suggest updating Android Studio.
If you continue to have problems, amend you question with the version of Android Studio you're using and the contents of your build files.
This is written up in bug https://code.google.com/p/android/issues/detail?id=66325 though the bug report doesn't really have any detail other than a couple reports that people solved it by upgrading.
I'm having alot of pain getting some of my android projects to run on eclipse 4.2, they run fine in Indigo , but not so much in Juno.
I'm using the android maven plugin, and they also runs fine from the console, using
mvn android:run
But after importing the projects into Juno, I get the following errors
An internal error occurred during: "Importing Maven projects".
com/android/io/StreamException
and
WARNING: unable to write jarlist cache file /path-to-project-bin/jarlist.cache
Then when trying to run the project, I get the following error in the console
R.java was modified manually! Reverting to generated version!
and the application crash on startup.
Have anybody seen similar problems with Juno?
This is a known issue with the m2e-android connector caused by the update for ADT version 20.0.0 that is being worked on:
https://github.com/rgladwell/m2e-android/issues/89
Update: The new 0.4.2 release fixes this issue was released today, please run an Eclipse update (Help -> Check for Updates) and let me know if this resolves your problems.
I installed Android 4.0 and updated the Eclipse plugin.
Now I cannot run any of my projects and get an error stating the following:
Error generating final archive: java.io.FileNotFoundException: C:\Projects\Android\HelloAndroid\bin\resources.ap_ does not exist
This is coming from a very simple "Hello World" app.
Anybody know how to get the resources.ap_ file generating again?
I ran into the same error (also referenced here) using Eclipse 3.7 (Indigo) after upgrading to ADT 14 and SDK 14 on all projects including newly created ones. I found a workaround someone posted on the ADT bug tracker, which is basically to switch Eclipse Settings->Android->Build->Build Output from "Verbose" to "Normal". The post is here.