[Gvsig_english] [gvSIG Mini] Problems Build in Android

johnitro johnitroo at gmail.com
Wed Oct 22 11:47:38 CEST 2014


Good Morning,

Before too would like to thank the project gvSIG Mini for much use and is
extremely difficult to find anything to compare to its wealth of features.
Also thank you for your constant availability shown by the members read
several posts on the forum.

Met the project because I'm starting to develop an Android application that
needs to use the maps, it is extremely important to be able to add WMS
layers can be more than one option layers in the future. It was for this
reason that this project first met and I was immediately like the whole
project.

However two weeks ago since I've been researching and trying to get the
project up and running, but without encouraging results.

Followed, among others, the following link:
[1]
https://confluence.prodevelop.es/display/GVMN/How+to+build+the+gvSIG+Mini+workspace+in+Eclipse

(Note that the link [1] svn checkout es.prodevelop.gvsig.mini.lib and
es.prodevelop.gvsig.mini are not totally correct, I think your fix is:
svn checkout
https://svn.prodevelop.es/public/gvsigmini/gvsig_mini_libraries/trunk/encryption/es.prodevelop.android.common.encrypt
svn checkout
https://svn.prodevelop.es/public/gvsigmini/design/trunk/com_markupartist_android_widget_actionbar
svn checkout
https://svn.prodevelop.es/public/gvsigmini/gvsig_mini_libraries/trunk/gvsig_mini_base
svn checkout
https://svn.prodevelop.es/public/gvsigmini/gvsig_mini_libraries/trunk/gvsig_mini
svn checkout
https://svn.prodevelop.es/public/gvsigmini/gvsig_mini_gpe/trunk/es.prodevelop.gvsig.mini.gpe
)

Beyond the mailinglist and constant research in various forums, where I was
me realizing that difficulty running the application was widespread in the
community, I was trying until I got some results, namely result 1 and 2 that
allowed errors no longer occur in the various designs, namely:

-> Result 1: 
1. Done checkout all the projects mentioned in [1], with corrected links 
2. I did import the projects into Eclipse ADT Bundle 
3. Did the Run ... -> Android application, but gives the following error:

[2014-10-22 09:34:17 - es.prodevelop.gvsig.mini] Dx warning: Ignoring
InnerClasses attribute for an anonymous inner class
(org.apache.xerces.dom.CharacterDataImpl$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of
ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2014-10-22 09:34:17 - es.prodevelop.gvsig.mini] Dx warning: Ignoring
InnerClasses attribute for an anonymous inner class
(org.apache.xerces.dom.ParentNode$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of
ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2014-10-22 09:34:17 - es.prodevelop.gvsig.mini] Dx warning: Ignoring
InnerClasses attribute for an anonymous inner class
(org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of
ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2014-10-22 09:34:17 - es.prodevelop.gvsig.mini] Dx warning: Ignoring
InnerClasses attribute for an anonymous inner class
(org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of
ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2014-10-22 09:34:18 - es.prodevelop.gvsig.mini] Dx 
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dx.cf.iface.ParseException: bad utf-8 byte a0 at offset 00000004
	at
com.android.dx.cf.cst.ConstantPoolParser.parseUtf8(ConstantPoolParser.java:374)
	at
com.android.dx.cf.cst.ConstantPoolParser.parse0(ConstantPoolParser.java:262)
	at
com.android.dx.cf.cst.ConstantPoolParser.parse0(ConstantPoolParser.java:294)
	at
com.android.dx.cf.cst.ConstantPoolParser.parse(ConstantPoolParser.java:150)
	at
com.android.dx.cf.cst.ConstantPoolParser.parseIfNecessary(ConstantPoolParser.java:124)
	at
com.android.dx.cf.cst.ConstantPoolParser.getPool(ConstantPoolParser.java:115)
	at
com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:482)
	at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
	at
com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
	at
com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
	at com.android.dx.command.dexer.Main.processClass(Main.java:665)
	at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
	at com.android.dx.command.dexer.Main.access$600(Main.java:78)
	at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572)
	at
com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
	at
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
	at
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
	at com.android.dx.command.dexer.Main.processOne(Main.java:596)
	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
	at com.android.dx.command.dexer.Main.run(Main.java:230)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at
com.android.ide.eclipse.adt.internal.build.DexWrapper.run(DexWrapper.java:188)
	at
com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:786)
	at
com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:597)
	at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:726)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
	at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:321)
	at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396)
	at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
	at
org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
	at org.eclipse.core.internal.resources.Project.build(Project.java:124)
	at
com.android.ide.eclipse.adt.internal.project.ProjectHelper.doFullIncrementalDebugBuild(ProjectHelper.java:1143)
	at
com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(LaunchConfigDelegate.java:155)
	at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:855)
	at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:704)
	at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1047)
	at
org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1251)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.lang.IllegalArgumentException: bad utf-8 byte a0 at offset
00000004
	at com.android.dx.rop.cst.CstString.throwBadUtf8(CstString.java:171)
	at com.android.dx.rop.cst.CstString.utf8BytesToString(CstString.java:143)
	at com.android.dx.rop.cst.CstString.<init>(CstString.java:200)
	at
com.android.dx.cf.cst.ConstantPoolParser.parseUtf8(ConstantPoolParser.java:371)
	... 43 more
...while parsing cst 00bf at offset 000008dd
...while parsing cst 003c at offset 00000109
...while parsing org/apache/xerces/impl/xpath/regex/ParserForXMLSchema.class

[2014-10-22 09:34:18 - es.prodevelop.gvsig.mini] Dx 1 error; aborting
[2014-10-22 09:34:18 - es.prodevelop.gvsig.mini] Conversion to Dalvik format
failed with error 1

As such, I ask for help in resolving the error described above, you could
help?


-> Result 2: 
[2]
svn checkout
https://svn.prodevelop.es/public/gvsigmini/gvsig_mini_libraries/trunk/encryption/es.prodevelop.android.common.encrypt
-r 1247
svn checkout
https://svn.prodevelop.es/public/gvsigmini/design/trunk/com_markupartist_android_widget_actionbar
-r 1249
svn checkout
https://svn.prodevelop.es/public/gvsigmini/gvsig_mini_libraries/trunk/gvsig_mini_base
-r 1270
svn checkout
https://svn.prodevelop.es/public/gvsigmini/gvsig_mini_libraries/trunk/gvsig_mini
-r 1271
svn checkout
https://svn.prodevelop.es/public/gvsigmini/gvsig_mini_gpe/trunk/es.prodevelop.gvsig.mini.gpe
-r 1270


1. Done checkout all the projects mentioned in [2] 
2. I did import the projects into Eclipse ADT Bundle 
3. I did care about Proprities-> Java Build Path-> Projects-> Add ... on all
projects with errors, regardless of the remaining projects to stop giving
errors 
4. Did the Run ... -> Android application, but gives the following error:

java.lang.RuntimeException: Unable to get provider
es.prodevelop.gvsig.mini.search.SearchSuggestionsMiniProvider:
java.lang.ClassNotFoundException: Didn't find class
"es.prodevelop.gvsig.mini.search.SearchSuggestionsMiniProvider" on path:
/system/framework/android.test.runner.jar:/data/app/es.prodevelop.gvsig.mini-2.apk
at android.app.ActivityThread.installProvider(ActivityThread.java:4822)
at
android.app.ActivityThread.installContentProviders(ActivityThread.java:4432)
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4372)
at android.app.ActivityThread.access$1300(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class
"es.prodevelop.gvsig.mini.search.SearchSuggestionsMiniProvider" on path:
/system/framework/android.test.runner.jar:/data/app/es.prodevelop.gvsig.mini-2.apk
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.ActivityThread.installProvider(ActivityThread.java:4807)
...

5. So I went to the AndroidManifest.xml es.prodevelop.gvsig.mini and
commented code:


6. Did the Run ... -> Android application, but gave the following error:

java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{es.prodevelop.gvsig.mini/es.prodevelop.gvsig.mini.app.SplashActivity}:
java.lang.ClassNotFoundException: Didn't find class
"es.prodevelop.gvsig.mini.app.SplashActivity" on path:
/system/framework/android.test.runner.jar:/data/app/es.prodevelop.gvsig.mini-1.apk
at android.app.ActivityThread.installProvider(ActivityThread.java:4822)
at
android.app.ActivityThread.installContentProviders(ActivityThread.java:4432)
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4372)
at android.app.ActivityThread.access$1300(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class
"es.prodevelop.gvsig.mini.app.SplashActivity" on path:
/system/framework/android.test.runner.jar:/data/app/es.prodevelop.gvsig.mini-1.apk
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.ActivityThread.installProvider(ActivityThread.java:4807)


Already confirmed and in AndroidManifest name keeps well written and the way
the activity "app.SplashActivity" 

In conclusion, among several attempts, these were the results with greater
relevance, as such I ask for help in solving the errors described above,
since the attempts have been varied and the results are not expected. 

Also wanted to thank for help as possible and wait for an answer, I'm a
little desperate. 
I'm so sorry for my bad english.

Thank you so much, 
Best regards for community,

João Manuel





--
View this message in context: http://osgeo-org.1560.x6.nabble.com/gvSIG-Mini-Problems-Build-in-Android-tp5168861.html
Sent from the gvSIG users mailing list archive at Nabble.com.


More information about the Gvsig_internacional mailing list