<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 21, 2013 at 4:35 PM, Summers Pittman <span dir="ltr"><<a 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 class="im">
<div>On 06/21/2013 10:31 AM, Matthias
Wessendorf wrote:<br>
</div>
<blockquote 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 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>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></div>
It isn't in the README, it is in the Eclipse doc.<br>
<br>
<a href="https://github.com/aerogear/aerogear.org/blob/master/docs/guides/GetStartedAndroidEclipse.asciidoc#getting-the-source-with-git" target="_blank">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 ;).</div></blockquote><div><br></div><div style>ah... OK. I missed that since I had the build already working, and directly went to the "Importing the project into Eclipse" section :) </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 class="im"><br>
<blockquote 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>Ok, not really sure what you mean here </div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote></div>
It is under the Android Tools submenu of the context menu in
Eclipse.</div></blockquote><div><br></div><div><br></div><div style>OK, now this resolves fine for the "support" bits, e.g:</div><div style><br></div><div style><span class="">import</span> android.support.v4.app.FragmentActivity; <==== GOOD NOW :)<br>
</div><div style><br></div><div style><br></div><div style>Let me file a JIRA to include the "Support Lib" on the Eclipse guide.</div><div style><br></div><div style>but still, this does not resovle:</div><div style>
<br></div><div style>
<p class="">
</p><p class=""><span class="">import</span> <span class="">android.app.Fragment</span>;</p></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 class="im"><br>
<blockquote 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>now.... the google collection dependencies are
resolved.</div>
<div><br>
</div>
<div>
Only that these are now continuing issues:<br>
</div>
<div>
<p><span>import</span> <span>android.app.Fragment</span>;<br>
<span>import</span> <span>android.support</span>.v4.app.FragmentActivity;</p>
</div>
<div>as well as the "<span>import</span> <span>com.google.android.gms</span>.gcm.GoogleCloudMessaging;"
(and some others)</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote></div>
You need to use the Google API's build target instead of the Android
2.3.3 build target. The docs on <a href="http://aerogear.org" target="_blank">aerogear.org</a> (obviously) havn't
been updated for push yet ;)</div></blockquote><div><br></div><div><br></div><div style>Hrm "Google APIs [Android 2.3.3]" does not help to resolve "Fragment" or "GoogleCloudMessaging" .</div>
<div style><br></div><div style><br></div><div style>For fun, I changed to "Google APIs [Android 4.2.2]". That resolved almost all issues, _except "import com.google.android.gms.gcm.GoogleCloudMessaging;". That guy is still a problem :-) </div>
<div style><br></div><div style><br></div><div style> </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 class="h5"><br>
<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>-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><br>
<br>
<br>
On 06/21/2013 06:10 AM, Matthias Wessendorf wrote:<br>
</div>
</div>
</div>
<div>
<div>
<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 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 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 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>
<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 href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a 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 href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a 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 href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a 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 href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
aerogear-dev mailing list
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a 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 href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>