Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

gen-idea fails with AAR #26

Closed
emptyarray opened this issue Jul 18, 2014 · 11 comments
Closed

gen-idea fails with AAR #26

emptyarray opened this issue Jul 18, 2014 · 11 comments

Comments

@emptyarray
Copy link

When I run gen-idea, I get:

[FAILED     ] org.macroid#macroid_2.11;2.0.0-M3!macroid_2.11.jar:  (0ms)
...
[warn] ==== jcenter: tried
[warn]   http://jcenter.bintray.com/org/macroid/macroid_2.11/2.0.0-M3/macroid_2.11-2.0.0-M3.jar

Is this because sbt-idea is looking for a .jar instead of a .aar? How do I get it working? I know this isn't really a Macroid issue but I figured you would know a workaround.

@stanch
Copy link
Collaborator

stanch commented Jul 18, 2014

How do you include Macroid? Which versions of android-sdk-plugin and sbt-idea do you use?

@stanch
Copy link
Collaborator

stanch commented Jul 18, 2014

Notice that the installation instructions require android-sdk-plugin version 1.2.20 and above — there were some important changes made with regards to including AARs: scala-android/sbt-android#74. Could you try with a recent version?

@stanch
Copy link
Collaborator

stanch commented Jul 18, 2014

@emptyarray Did you delete your message by accident? I can restore it from my e-mail.

@emptyarray
Copy link
Author

I deleted it because immediately after posting it, I realized that I didn't have the latest version of android-sdk-plugin. I tried with 1.2.20, but I'm still getting this:

[FAILED     ] com.android.support#support-v4;20.0.0!support-v4.jar:  (0ms)
[warn] ==== local: tried
[warn]   /Users/.../.ivy2/local/com.android.support/support-v4/20.0.0/jars/support-v4.jar
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/android/support/support-v4/20.0.0/support-v4-20.0.0.jar
[warn] ==== google libraries: tried
[warn]   file:/usr/local/Cellar/android-sdk/22.6.2/extras/google/m2repository/com/android/support/support-v4/20.0.0/support-v4-20.0.0.jar
[warn] ==== android libraries: tried
[warn]   file:/usr/local/Cellar/android-sdk/22.6.2/extras/android/m2repository/com/android/support/support-v4/20.0.0/support-v4-20.0.0.jar
[warn] ==== jcenter: tried
[warn]   http://jcenter.bintray.com/com/android/support/support-v4/20.0.0/support-v4-20.0.0.jar
[warn]  [FAILED     ] org.macroid#macroid_2.11;2.0.0-M3!macroid_2.11.jar:  (0ms)
[warn] ==== local: tried
[warn]   /Users/.../.ivy2/local/org.macroid/macroid_2.11/2.0.0-M3/jars/macroid_2.11.jar
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/macroid/macroid_2.11/2.0.0-M3/macroid_2.11-2.0.0-M3.jar
[warn] ==== google libraries: tried
[warn]   file:/usr/local/Cellar/android-sdk/22.6.2/extras/google/m2repository/org/macroid/macroid_2.11/2.0.0-M3/macroid_2.11-2.0.0-M3.jar
[warn] ==== android libraries: tried
[warn]   file:/usr/local/Cellar/android-sdk/22.6.2/extras/android/m2repository/org/macroid/macroid_2.11/2.0.0-M3/macroid_2.11-2.0.0-M3.jar
[warn] ==== jcenter: tried
[warn]   http://jcenter.bintray.com/org/macroid/macroid_2.11/2.0.0-M3/macroid_2.11-2.0.0-M3.jar
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::              FAILED DOWNLOADS            ::
[warn]  :: ^ see resolution messages for details  ^ ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.android.support#support-v4;20.0.0!support-v4.jar
[warn]  :: org.macroid#macroid_2.11;2.0.0-M3!macroid_2.11.jar
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

Maybe there is also a problem with my sdk setup.

@stanch
Copy link
Collaborator

stanch commented Jul 18, 2014

Regarding the support library, I think you can either use a lower version, or update the SDK to install 20.0.0. For that you’ll need to install “L Developer Preview” first, and after updating the new versions of stuff will appear.

I just tried ;clean; gen-idea and it indeed produces the same message for Macroid, however the highlighting and classpath seem to be ok in the IDE, so unless this is not the case for you, don’t bother about these messages.

@stanch
Copy link
Collaborator

stanch commented Jul 18, 2014

Actually ignore what I wrote about the support library, if your project compiles, you already have the right version.

@stanch
Copy link
Collaborator

stanch commented Jul 21, 2014

Do you still have any problems? I’ll close for now as not really Macroid-related, feel free to comment/reopen.

@stanch stanch closed this as completed Jul 21, 2014
@biribir
Copy link

biribir commented Aug 23, 2014

I am having the same issue with gen-idea.
[warn] :: FAILED DOWNLOADS ::
[warn] :: org.macroid#macroid_2.11;2.0.0-M3!macroid_2.11.jar
[warn] :: com.android.support#support-v4;20.0.0!support-v4.jar

"macroid" % "2.0.0-M3
android-20

@stanch
Copy link
Collaborator

stanch commented Aug 23, 2014

@biribir There is actually no issue here, since there are indeed no jar artifacts. Are you experiencing any problems with IDEA configuration?

@biribir
Copy link

biribir commented Aug 23, 2014

To check IDEA configuration after your reply, I reopened the project and realized all red under-strokes were gone. And in project pane under 'External Libraries' I saw 'org.macroid-macroid_2.11-2.0.0-M3.jar'. It was placed under 'sbtprojectdirectory/target/aars/org.macroid-macroid_2.11-2.0.0-M3' and some how my idea wasn't able to find it before. Thank you for pointing out it wasn't an issue.

@pfn
Copy link

pfn commented Aug 23, 2014

A build needs to run for aar to get unpacked.

Sent from my phone
On Aug 23, 2014 3:25 PM, "biribir" notifications@github.com wrote:

To check IDEA configuration after your reply, I reopened the project and
realized all red under-strokes were gone. And in project pane under
'External Libraries' I saw 'org.macroid-macroid_2.11-2.0.0-M3.jar'. It was
placed under
'sbtprojectdirectory/target/aars/org.macroid-macroid_2.11-2.0.0-M3' and
some how my idea wasn't able to find it before. Thank you for pointing out
it wasn't an issue.


Reply to this email directly or view it on GitHub
#26 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants