Closed
Bug 1098457
Opened 10 years ago
Closed 9 years ago
Gradle configuration: Android Studio only builds when run from command line
Categories
(Firefox Build System :: Android Studio and Gradle Integration, defect)
Firefox Build System
Android Studio and Gradle Integration
All
Android
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: garvan, Unassigned)
References
Details
Attachments
(2 files)
897 bytes,
patch
|
garvan
:
feedback-
|
Details | Diff | Splinter Review |
318.73 KB,
text/plain
|
Details |
Here is the build error: https://pastebin.mozilla.org/7289934 Here is the gradle properties file gkeeley13311:obj-fennec gkeeley$ more mobile/android/gradle/gradle.properties topsrcdir=/Users/gkeeley/c/src2/mozilla-central topobjdir=/Users/gkeeley/c/src2/obj-fennec compileSdkVersion=android-20 buildToolsVersion=20.0.0 targetSdkVersion=20 minSdkVersion=9 MOZ_CRASHREPORTER=false Background: OS X 10.9, Android Studio 0.8.14 I imported the project by selecting the 'gradle' item: https://www.dropbox.com/s/8tw5ybk3xw1zv81/Screenshot%202014-11-13%2013.02.49.png
Comment 1•10 years ago
|
||
We run mach in the object directory, but it appears that the -C argument fouls the object directory discovery. This avoids that issue. garvank: apply this patch, build from the command line, and then build from the IDE?
Attachment #8522364 -
Flags: feedback?(gkeeley)
:base:prepareObjDir Error running mach: ['build', 'mobile/android/base/gradle-targets'] If it is helpful, a successful run looks like this: :base:prepareObjDir 0:00.40 /opt/local/bin/gmake -C /Users/gkeeley/c/src2/obj-fennec -j8 -s backend.RecursiveMakeBackend 0:03.58 /opt/local/bin/gmake -C mobile/android/base -j8 -s gradle-targets 0:03.61 omni.ja
Attachment #8522364 -
Flags: feedback?(gkeeley) → feedback-
With this patch, starting from the command-line and building still works.
> garvank: apply this patch, build from the command line, and then build
> from the IDE?
ASIDE: The build from command-line step seems redundant, the IDE is going to do the same thing.
In AS, Project Settings > Compiler > Command-line options Added |--stacktrace --debug| Lots of output https://pastebin.mozilla.org/7292189
Nick you were right, the OBJDIR has no effect. Simply running AS from the command-line is enough.
Summary: Gradle configuration: Android Studio only picks up $OBJDIR when run from command line → Gradle configuration: Android Studio only builds when run from command line
Comment 8•9 years ago
|
||
I think this is no longer an issue. garvank, can you re-open if appropriate?
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(gkeeley)
Resolution: --- → WORKSFORME
Correct, I have multiple build environments, configured by my shell, and the environment for Finder-level apps uses an environment that is for another project. Essentially this is a byproduct of my particular setup.
Flags: needinfo?(gkeeley)
Updated•7 years ago
|
Component: Build Config → Build Config & IDE Support
Product: Core → Firefox for Android
Updated•5 years ago
|
Product: Firefox for Android → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•