<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 06/21/2013 10:31 AM, Matthias
Wessendorf wrote:<br>
</div>
<blockquote
cite="mid:CAAg5f2RaY1vPvZ47yrwvPrKdFtfN3u8VCw3q5YCCuEyc02Nt3w@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Jun 21, 2013 at 4:16 PM,
Summers Pittman <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:supittma@redhat.com"
target="_blank">supittma@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Eclipse + Maven + Android is a series of long sighs
best avoided. The idea with the Android project is we
declared the compile time dependencies for the
application and they SHOULD be dropped into your /libs
folder after running `mvn dependency:copy`. After
that Eclipse SHOULD pick them up correctly.<br>
</div>
</div>
</blockquote>
<div><br>
</div>
<div style="">ah... ok. the "<span
style="font-family:arial,sans-serif;font-size:13px">mvn
dependency:copy" is missing on the README (will file a
JIRA/PR soon).</span></div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
It isn't in the README, it is in the Eclipse doc.<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/aerogear/aerogear.org/blob/master/docs/guides/GetStartedAndroidEclipse.asciidoc#getting-the-source-with-git">https://github.com/aerogear/aerogear.org/blob/master/docs/guides/GetStartedAndroidEclipse.asciidoc#getting-the-source-with-git</a><br>
<br>
I don't want to muddle up the README with the n! ways of getting
AeroGear running ;).<br>
<blockquote
cite="mid:CAAg5f2RaY1vPvZ47yrwvPrKdFtfN3u8VCw3q5YCCuEyc02Nt3w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div> <br>
The second half of this is making sure you download
the Android support library.<br>
</div>
</div>
</blockquote>
<div><br>
</div>
<div style="">Ok, not really sure what you mean here </div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
It is under the Android Tools submenu of the context menu in
Eclipse.<br>
<blockquote
cite="mid:CAAg5f2RaY1vPvZ47yrwvPrKdFtfN3u8VCw3q5YCCuEyc02Nt3w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div> <br>
Could you post the content of your libs directory?</div>
</div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>
<div>pluto:aerogear-android matzew$ ls -la libs/</div>
<div>total 4104</div>
<div>drwxr-xr-x 5 matzew staff 170 Jun 21 16:24 .</div>
<div>drwxr-xr-x 17 matzew staff 578 Jun 21 16:24 ..</div>
<div>-rw-r--r-- 1 matzew staff 13662 Jun 21 16:24
gcm-client-3.jar</div>
<div>-rw-r--r-- 1 matzew staff 189285 Jun 21 16:24
gson-2.2.2.jar</div>
<div>
-rw-r--r-- 1 matzew staff 1891110 Jun 21 16:24
guava-13.0.1.jar</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div style="">now.... the google collection dependencies are
resolved.</div>
<div style=""><br>
</div>
<div style="">
Only that these are now continuing issues:<br>
</div>
<div style="">
<p class=""><span class="">import</span> <span class="">android.app.Fragment</span>;<br>
<span class="">import</span> <span class="">android.support</span>.v4.app.FragmentActivity;</p>
</div>
<div style="">as well as the "<span class="">import</span> <span
class="">com.google.android.gms</span>.gcm.GoogleCloudMessaging;"
(and some others)</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
You need to use the Google API's build target instead of the Android
2.3.3 build target. The docs on aerogear.org (obviously) havn't
been updated for push yet ;)<br>
<br>
<br>
<blockquote
cite="mid:CAAg5f2RaY1vPvZ47yrwvPrKdFtfN3u8VCw3q5YCCuEyc02Nt3w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div style="">-Matthias</div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>
<div>
<div class="h5"><br>
<br>
<br>
On 06/21/2013 06:10 AM, Matthias Wessendorf wrote:<br>
</div>
</div>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I did a download of the latest Android SDK
(adt-bundle-mac-x86_64-20130522), and did
follow our instructions here:</div>
<div><a moz-do-not-send="true"
href="https://github.com/aerogear/aerogear-android/blob/push/README.md"
target="_blank">https://github.com/aerogear/aerogear-android/blob/push/README.md</a></div>
<div><br>
</div>
<div>I did the maven-sdk-deployer etc, all good.
the branch was compiling with Maven. Great!</div>
<div><br>
</div>
<div><br>
</div>
<div>Now, with Eclipse, I did follow these
instructions:</div>
<div> <a moz-do-not-send="true"
href="http://staging.aerogear.org/docs/guides/GetStartedAndroidEclipse/"
target="_blank">http://staging.aerogear.org/docs/guides/GetStartedAndroidEclipse/</a><br>
</div>
<div><br>
</div>
<div>But once I finished these steps, I am
getting compiler errors. For instance on the
Pipeline.java, I am getting these issues:</div>
<div><br>
</div>
<div><span>import</span> <span>android.app.Fragment</span>;<br>
<span>import</span> <span>android.support</span>.v4.app.FragmentActivity;<br>
<span>import</span> <span>com.google</span>.common.collect.HashMultimap;<br>
<span>import</span> <span>com.google</span>.common.collect.Multimap;</div>
<div><br>
</div>
<div><br>
</div>
<div>While I think that the android.** related
import issues are most likely related to the
fact that this is perhaps now wrong (2.3.3):</div>
<div><a moz-do-not-send="true"
href="http://staging.aerogear.org/docs/guides/img/android_eclipse_import_005.png"
target="_blank">http://staging.aerogear.org/docs/guides/img/android_eclipse_import_005.png</a><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> But the Google Collections are also not
resolving. </div>
<div><br>
</div>
<div>I guess the "Import" in Eclipse is not
really reflecting the description of the guava
dependency in the pom.xml file.</div>
<div><br>
</div>
</div>
</blockquote>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">
<div>Besides the google collections, I also
noticed that other classes (like "<span>com.google</span>.android.gms.gcm.GoogleCloudMessaging")
are not being resolved.</div>
<div> <br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Is there a way that all these "required"
dependencies are picked up automatically, by
the Eclipse IDE? Or do I have to import all
dependencies, by hand ? </div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks!</div>
<div>Matthias</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> <br>
</div>
<div><br>
</div>
<div><br clear="all">
<div><br>
</div>
-- <br>
Matthias Wessendorf <br>
<br>
blog: <a moz-do-not-send="true"
href="http://matthiaswessendorf.wordpress.com/"
target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a moz-do-not-send="true"
href="http://www.slideshare.net/mwessendorf"
target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a moz-do-not-send="true"
href="http://twitter.com/mwessendorf"
target="_blank">http://twitter.com/mwessendorf</a>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
aerogear-dev mailing list
<a moz-do-not-send="true" href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
</blockquote>
<br>
</div>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/aerogear-dev"
target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Matthias Wessendorf <br>
<br>
blog: <a moz-do-not-send="true"
href="http://matthiaswessendorf.wordpress.com/"
target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a moz-do-not-send="true"
href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a moz-do-not-send="true"
href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
aerogear-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
</blockquote>
<br>
</body>
</html>