Chromium lite Android Studio Project

276 views
Skip to first unread message

cAptAin rAinmAker

unread,
Jan 8, 2018, 6:04:57 AM1/8/18
to Chromium-dev
Hi,
I wondering if I can archive a simple Chromium Android Studio Project.
Currently, the Chromium project on Android is too huge for me.
Thank in advance!

Anita Woodruff

unread,
Jan 8, 2018, 6:50:41 AM1/8/18
to mr.ntd...@gmail.com, Andrew Grieve, Peter Wen, Chromium-dev
+agr...@chromium.org +wn...@chromium.org who have worked on making Chromium Android compatible with Android Studio.

I wonder if setting a single target with the --target option when running generate_gradle.py might help you, however the example seems to have been removed from https://chromium.googlesource.com/chromium/src.git/+/master/docs/android_studio.md since the script now targets all by default

 - Andrew, Peter can you explain how to just target chrome_public_apk ? (is it --target chrome_public_apk__apk ?)

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/19afa86e-ca32-4ff8-8b95-21d7d70faeaf%40chromium.org.

Andrew Grieve

unread,
Jan 9, 2018, 9:51:02 PM1/9/18
to Anita Woodruff, mr.ntd...@gmail.com, Peter Wen, Chromium-dev
For no good reason, --target doesn't work without --split-projects at the moment. I'll make a change to fix that though (CL).



On Mon, Jan 8, 2018 at 6:49 AM, Anita Woodruff <aw...@google.com> wrote:
+agr...@chromium.org +wnwen@chromium.org who have worked on making Chromium Android compatible with Android Studio.

Dung Nguyen

unread,
Jan 9, 2018, 9:53:11 PM1/9/18
to Andrew Grieve, Anita Woodruff, Peter Wen, Chromium-dev
So, currently how can I archive android studio project for build like ContentShell.apk?

Andrew Grieve

unread,
Jan 9, 2018, 9:54:53 PM1/9/18
to Dung Nguyen, Anita Woodruff, Peter Wen, Chromium-dev
What do you mean by "archive android studio project"?

Note that the generate_gradle.py script doesn't create projects that actually compile via studio. It creates projects just well enough that editor and refactoring features work.

Dung Nguyen

unread,
Jan 9, 2018, 9:57:50 PM1/9/18
to Andrew Grieve, Anita Woodruff, Peter Wen, Chromium-dev
I want to get something like this guy did but much more simple. I just want web loading part

Andrew Grieve

unread,
Jan 9, 2018, 10:23:33 PM1/9/18
to Dung Nguyen, Anita Woodruff, Peter Wen, Chromium-dev
I'd try out the generate_gradle.py script with:
  --target=//content/shell/android:content_shell_apk --split-projects

We don't have any plans on making compiling / running from studio work in the short-term though. It's enough for editing though.

Dung Nguyen

unread,
Jan 9, 2018, 10:24:39 PM1/9/18
to Andrew Grieve, Anita Woodruff, Peter Wen, Chromium-dev
Cool. Thank you for paying attention!

Mohamed Ebrahim

unread,
May 9, 2019, 12:22:15 PM5/9/19
to Chromium-dev, mr.ntd...@gmail.com, aw...@google.com, wn...@chromium.org
Help!

i wanna know the path of android project folder that i can use inside the android studio ??
i mean i have bulid public_chrome_apk on ubuntu ....and i wanna know the source code folder that can opened on android studio


On Wednesday, January 10, 2018 at 5:23:33 AM UTC+2, Andrew Grieve wrote:
I'd try out the generate_gradle.py script with:
  --target=//content/shell/android:content_shell_apk --split-projects

We don't have any plans on making compiling / running from studio work in the short-term though. It's enough for editing though.
On Tue, Jan 9, 2018 at 9:56 PM, Dung Nguyen <mr.nt...@gmail.com> wrote:
I want to get something like this guy did but much more simple. I just want web loading part
On Jan 10, 2018 9:54 AM, "Andrew Grieve" <agr...@google.com> wrote:
What do you mean by "archive android studio project"?

Note that the generate_gradle.py script doesn't create projects that actually compile via studio. It creates projects just well enough that editor and refactoring features work.
On Tue, Jan 9, 2018 at 9:51 PM, Dung Nguyen <mr.nt...@gmail.com> wrote:
So, currently how can I archive android studio project for build like ContentShell.apk?
On Jan 10, 2018 9:49 AM, "Andrew Grieve" <agr...@google.com> wrote:
For no good reason, --target doesn't work without --split-projects at the moment. I'll make a change to fix that though (CL).


On Mon, Jan 8, 2018 at 6:49 AM, Anita Woodruff <aw...@google.com> wrote:
...@chromium.org +wn...@chromium.org who have worked on making Chromium Android compatible with Android Studio.

Torne (Richard Coles)

unread,
May 9, 2019, 12:31:45 PM5/9/19
to m.eb...@waslabrowser.com, Chromium-dev, mr.ntd...@gmail.com, Anita Woodruff, wn...@chromium.org
chrome_public_apk includes code from virtually every part of the source tree. You can't open just some subdirectory - you need roughly ~all of it.

The commands people have suggested to generate a gradle project for a specific target should work.

Yn Super

unread,
May 9, 2019, 12:52:18 PM5/9/19
to Chromium-dev
https://github.com/anhducanh14/ContentShell-Android
Hope can help you. If you have another way please show me :D

Vào 06:04:57 UTC-5 Thứ Hai, ngày 08 tháng 1 năm 2018, cAptAin rAinmAker đã viết:

Nguyễn Đức Anh

unread,
Apr 7, 2020, 5:25:19 PM4/7/20
to Chromium-dev, agr...@google.com, aw...@google.com, wn...@chromium.org
Hi Dung can you help me to build chromium to android project


On Wednesday, January 10, 2018 at 10:24:39 AM UTC+7, Dung Nguyen wrote:
Cool. Thank you for paying attention!
On Jan 10, 2018 10:21 AM, "Andrew Grieve" <agr...@google.com> wrote:
I'd try out the generate_gradle.py script with:
  --target=//content/shell/android:content_shell_apk --split-projects

We don't have any plans on making compiling / running from studio work in the short-term though. It's enough for editing though.
On Tue, Jan 9, 2018 at 9:56 PM, Dung Nguyen <mr.nt...@gmail.com> wrote:
I want to get something like this guy did but much more simple. I just want web loading part
On Jan 10, 2018 9:54 AM, "Andrew Grieve" <agr...@google.com> wrote:
What do you mean by "archive android studio project"?

Note that the generate_gradle.py script doesn't create projects that actually compile via studio. It creates projects just well enough that editor and refactoring features work.
On Tue, Jan 9, 2018 at 9:51 PM, Dung Nguyen <mr.nt...@gmail.com> wrote:
So, currently how can I archive android studio project for build like ContentShell.apk?
On Jan 10, 2018 9:49 AM, "Andrew Grieve" <agr...@google.com> wrote:
For no good reason, --target doesn't work without --split-projects at the moment. I'll make a change to fix that though (CL).


On Mon, Jan 8, 2018 at 6:49 AM, Anita Woodruff <aw...@google.com> wrote:
...@chromium.org +wn...@chromium.org who have worked on making Chromium Android compatible with Android Studio.
Reply all
Reply to author
Forward
0 new messages