Thanks Tor! I'm going to try this tonight! I'm trying to get to the bottom of a bug in Android studio where the class path is not set correctly when you try to run unit tests. I was following the Robolectric community and apparently Idea aggressively rewrites the project files. Also I've noticed it doesn't respect the order of the gradle dependencies as it insists on placing Android at the head, which causes the Stub! exception.
On Monday, May 12, 2014 8:53:35 AM UTC-7, Tor Norbye wrote: > > Hmmm, none of this should be necessary. However, we've just changed how > the builds are handled so it's possible that what you're seeing is due to > some of these changes. However, it's more likely that it's due to this: "I've > opened the project in Idea EAP and pointed it to the Idea EAP SDK (since > "Idea sdk" is not defined in my IDE settings)". > > Don't do that; it' very important that you build the plugin with exactly > the same IDEA sources as we are, and in particular, the idea133 branch. The > top of the tools.android.com/build/studio page has the information on how > to set up your IJ with the right SDK name such that you can open the > tools/idea project directly. > > Oh, and yes, you need the repo command; installation instructions are here: > http://source.android.com/source/downloading.html > I realize that step was missing from the tools.android.com/build/studiopage, > so I just added it. > > -- Tor > > > On Mon, May 12, 2014 at 7:37 AM, Clifton Craig > <[email protected]<javascript:> > > wrote: > >> I tried switching to the canary branch, compiling, and fixing dependency >> issues the entire weekend… one module at a time. I finally gave up when I >> hit an impossible to fix dependency error: >> >> Error:(120, 54) java: cannot find symbol >> symbol: method getUrlToOpen(com.intellij.psi.PsiElement,boolean) >> location: class com.intellij.ide.browsers.WebBrowserService >> >> This error is in the xml module in the >> "OpenFileInDefaultBrowserAction.java:120" file. For whatever reason I only >> get this error when I attempt to compile the project. The editor stopped >> flagging the error once I moved the Idea SDK to the bottom of this module's >> dependency list. For some reason its as if the compiler is still seeing the >> dependency list in the wrong order. I've seen this type of behavior once in >> a while in Idea but have never taken the time to resolve it. At any rate, I >> would LOVE to have some step-by-step instructions on building AndroidStudio >> from source. Also, I would love to understand more about the "repo" tool >> you use to manage the repository. This is the first time I've heard of it >> and though I am still using the "Git" tools in Idea to switch branches I'd >> like to know if there's something that I'm missing. >> >> On Saturday, May 10, 2014 6:26:16 PM UTC-7, Clifton Craig wrote: >> >>> Hi, >>> >>> I'm trying to build and run Android Studio from source. I was following >>> instructions here: >>> http://tools.android.com/build/studio >>> However I am having trouble after sync'ing the repo. I've opened the >>> project in Idea EAP and pointed it to the Idea EAP SDK (since "Idea sdk" is >>> not defined in my IDE settings). Finally I tried running the Android Studio >>> run config and I get a compile error: >>> >>> Error:(30, 1) java: /Applications/Developer/AndroidStudioSrc/tools/base/ >>>> lint/libs/lint-api/src/main/java/com/android/tools/lint/client/api/LintDriver.java:30: >>>> >>>> cannot find symbol >>>> symbol : static ASM4 >>>> location: interface org.objectweb.asm.Opcodes >>> >>> >>> I tried switching to/checking out the aosp/idea133 branch and >>> compiling/running again but I hit the same error. Are there any definitive >>> "Getting started building from source" guides around? I understand the >>> build is in flux currently. Did I just hit an error? Thanks in advance! >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "adt-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
