Eclipse Juno and android maven plugin - android

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.

Related

Android studio showing continuous same error

[It is an image which is showing errors that I want to solve
I am using android 2.3.3 I have changed many setups but some constant problems are apearing
Gradle project sync failed.
Rendor errors
install repository and sync project.
I do a lot search and found some ways I replace gradle folder with new version of gradle but failed to solve this.As i installed repository but error is still there.
Why all setups of android are showing same problem?
Remove all previous installation.
Install java JDK 8.
Install jre.
Download latest Android studio (https://developer.android.com/studio/archive.html)
Follow these steps. (https://developer.android.com/studio/install.html)
Can you specify your system configurations?

Gradle Error after updating android studio to 2.3

I'm getting the following error after updating android studio to 2.3;
Error:A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugApk'.
org.gradle.api.internal.artifacts.configurations.ConfigurationInternal.getModule()Lorg/gradle/api/internal/artifacts/ModuleInternal;
I already tried this solution,without succes.
I had the similar issue and then run ./gradlew app:dependencies --stacktrace command in the terminal (note stacktrace option). The stacktrace was:
java.lang.NoSuchMethodError: org.gradle.api.internal.artifacts.configurations.ConfigurationInternal.getModule()Lorg/gradle/api/internal/artifacts/ModuleInternal;
at org.gradle.api.plugins.AndroidMavenPlugin$8.execute(AndroidMavenPlugin.java:167)
at org.gradle.api.plugins.AndroidMavenPlugin$8.execute(AndroidMavenPlugin.java:159)
...
That result pointed me to the maven plugin I'm using in the project: com.github.dcendents:android-maven-gradle-plugin. After googling I found the same issue on their Github and the solution is to upgrade to their latest version 1.5 which adds support of Gradle 3.0.
BTW, before all that I cleared my .gradle folder at home directory and relaunch Android Studio with killing java processes but still not sure if these steps were obvious.
P.S. Also, later I had to upgrade Robolectric to the latest version for my tests executing successfully. So, even if your issue isn't related to maven plugin my assumption is that you need to re-check all dependencies you are using if they work with the new Gradle version.

Error while Installing APK

Today, I have updated my android studio from gradle 2.2.1 to 2.14.1
from that onwards my studio is unable install any apk files in the device.
it showing the error.
\app\build\outputs\apk\app-debug.apk does not exist on disk.
Error while Installing APK.
But on the explorer the directory contains apk file. I have tried clean, rebuild & restared the studio also, but unable to fix. please help me.
click on option to solve your error
I solved my problem by changing gradle version to previous state. in
File-->project structure-->Project -->Gradle version & Android plugin version.

An internal error occurred during: "Importing Maven projects". com/android/io/StreamException

I'm pretty new to Android development, so I decided starting with simple hello world application" my steps were:
in command line: "mvn archetype:generate -DarchetypeArtifactId=android-quickstart -DarchetypeGroupId=de.akquinet.android.archetypes -DarchetypeVersion=1.0.7 -DgroupId=com.agibalov -DartifactId=my-app"
After success went to eclipse
File->Import->Existing Maven Project->Selected project i've just created with maven
and after clicking "Finish" i got error "An internal error occurred during: "Importing Maven projects". com/android/io/StreamException"
Maven version 3.0.3
Java version 1.7.0_05
eclipse Juno or Helios
installed ADT plugin for the Eclipse IDE
Android configurator for m2e
Please let me know if more details are required for preventing this error
This is a known issue with ADT 20.0.0+ and the Android Connector for Maven (m2e-android) plugin. 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.

Installed Android 4.0 now cannot run project - missing resources.ap_

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.

Categories

Resources