Rob
> --
> You received this message because you are subscribed to the Google Groups "Maven Android Developers" group.
> To post to this group, send email to maven-androi...@googlegroups.com.
> To unsubscribe from this group, send email to maven-android-deve...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/maven-android-developers?hl=en.
>
>
manfred
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/manningr/projects/android4maven/target-2.2/android-impl-android-2.2/src/main/java/com/android/quicksearchbox/google/GoogleSuggestionProvider.java:[26,-1]
cannot access org.json.JSONArray
bad class file:
/home/manningr/.m2/repository/org/json/json/20090211/json-20090211.jar(org/json/JSONArray.class)
class file has wrong version 50.0, should be 49.0
I read somewhere that recently Google SDK team removed the last
remaining dependencies that required 1.5 to build the SDK, so it may
no longer be an obstacle. But if you can't use 1.6, then the
following may work:
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20080701</version>
Rob
Oh and btw. revision 2 of 2.2 was made available today.
manfred
-------- <<< 0 >>> ---------
Manfred Moser
Cell: ++1 (250) 514 0135
man...@simpligility.com
http://www.simpligility.com
On Thursday July 8 2010, Robert Manning wrote:
> You will need to be using JDK 1.6 for that dependency. I get the
> following using 1.5 :
>
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------
> ------ [INFO] Compilation failure
>
> /home/manningr/projects/android4maven/target-2.2/android-impl-andro
> id-2.2/src/main/java/com/android/quicksearchbox/google/GoogleSugges
> tionProvider.java:[26,-1] cannot access org.json.JSONArray
> bad class file:
> /home/manningr/.m2/repository/org/json/json/20090211/json-20090211.
> jar(org/json/JSONArray.class) class file has wrong version 50.0,
// Note: this class was written without inspecting the non-free
org.json sourcecode.
Along with a bunch of their own custom code. What a mess for Maven
developers to sort through! They should have changed the package of
the source as they were forking it. It's considered taboo to release
the same classes under different maven coordinates. It is also taboo
to release forked versions using the same maven coordinates as the
"official" version. Now, if we the re-package the forked artifacts
they will become useless for Android developers.
And this is just the tip of the iceberg...
Rob
On 8/28/10 00:19 , Robert Manning wrote:
> http://www.json.org/java/index.html has the latest version of the
> source code. The JSONStringer there is from 2008-09-18. It
> matches what is available in Maven Central - just a constructor and
> a toString() method. My guess is that Android is relying on
> Google's fork of this library. The source code for this class
> (./dalvik/libcore/json/src/main/java/org/json/JSONStringer.java)
> has the following nugget :
>
> // Note: this class was written without inspecting the non-free
> org.json sourcecode.
>
> Along with a bunch of their own custom code. What a mess for Maven
> developers to sort through! They should have changed the package
> of the source as they were forking it. It's considered taboo to
> release the same classes under different maven coordinates. It is
> also taboo to release forked versions using the same maven
> coordinates as the "official" version. Now, if we the re-package
> the forked artifacts they will become useless for Android
> developers. And this is just the tip of the iceberg...
So glad I've just ignored Android JSON stuff and I'm relying on
org.json.me :-)
- --
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
Fabrizio...@tidalwave.it
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkx4PRsACgkQeDweFqgUGxfRXQCfTpC7X2h9qMjnU/yF1cfuceAm
+HYAn2MrxpoW1shKuYj6s1JULss0OU77
=a/P0
-----END PGP SIGNATURE-----