Help to import Android Chromium into an IDE?

1,110 views
Skip to first unread message

MinhHoang To

unread,
Jun 1, 2015, 1:35:29 AM6/1/15
to chromi...@chromium.org
My purpose while working on Chromium is only to make a custom version for Android. Hence, i need to convert chrome/android/java into an Android Studio project to simplify the build process. I wish to know if that is feasible and in case it is, please give me instructions to do so.

What i have done so far (but there seem to be distance to success due to the complex library dependency in Android Chromium )is to create a project in Android Studio and:

  1. Copy the generated AndroidManifest.xml to the project
  2. Copy the chrome/android/java/src  and chrome/android/java_staging/src to the source directory of the project
  3. Copy the generated  *_java.jar from  out/Release/lib.java , excluding the chrome_java.jar and chrome_java_staging.jar, to the lib directory
  4. Copy the libchrome_public.so and libchrome_android_linker.so to the NDK lib directory


 

MinhHoang To

unread,
Jun 1, 2015, 6:55:41 AM6/1/15
to chromi...@chromium.org
@newt: Could you help me on this?

Anthony Berent

unread,
Jun 1, 2015, 7:10:33 AM6/1/15
to hoang...@gmail.com, chromi...@chromium.org
Are you already successfully building the standard ChromePublic.apk, from the command line using gyp and ninja? If not, then I recommend getting this working first to make sure that your base environment is set up correctly.

I don't think anybody on the Chrome team is yet using Android Studio to develop Chrome for Android, and I suspect that getting this working is a significant piece of work; however many of us do use Eclipse; see https://code.google.com/p/chromium/wiki/AndroidEclipseDev.


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

MinhHoang To

unread,
Jun 1, 2015, 7:17:13 AM6/1/15
to chromi...@chromium.org, hoang...@gmail.com
@aberent:  I managed to build ChromePublic.apk from command line. Now, i am setting my own dev environment for Android Chromium

Anton Vayvod

unread,
Jun 1, 2015, 7:25:44 AM6/1/15
to MinhHoang To, chromium-dev
On Mon, Jun 1, 2015 at 12:17 PM, MinhHoang To <hoang...@gmail.com> wrote:
@aberent:  I managed to build ChromePublic.apk from command line. Now, i am setting my own dev environment for Android Chromium

Why don't you want to use Eclipse which is the supported IDE at the moment?
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

MinhHoang To

unread,
Jun 1, 2015, 7:32:03 AM6/1/15
to chromi...@chromium.org, ava...@chromium.org

On Monday, June 1, 2015 at 6:25:44 PM UTC+7, Anton Vayvod wrote:


On Mon, Jun 1, 2015 at 12:17 PM, MinhHoang To <hoang...@gmail.com> wrote:
@aberent:  I managed to build ChromePublic.apk from command line. Now, i am setting my own dev environment for Android Chromium

Why don't you want to use Eclipse which is the supported IDE at the moment?


I was unaware of that support. I am trying to setup on Eclipse now

Thiago Farina

unread,
Jun 1, 2015, 9:43:03 AM6/1/15
to abe...@chromium.org, chromi...@chromium.org, Newton Allen, Aurimas Liutikas


On Monday, June 1, 2015, Anthony Berent <abe...@chromium.org> wrote:
Are you already successfully building the standard ChromePublic.apk, from the command line using gyp and ninja? If not, then I recommend getting this working first to make sure that your base environment is set up correctly.

I don't think anybody on the Chrome team is yet using Android Studio to develop Chrome for Android, and I suspect that getting this working is a significant piece of work; however many of us do use Eclipse; see https://code.google.com/p/chromium/wiki/AndroidEclipseDev.

Is it possible to put all that instructions in a setup script, like bazel has[1]?



--
Thiago Farina

Cuong Manh

unread,
Nov 16, 2016, 4:57:43 AM11/16/16
to Chromium-dev, hoang...@gmail.com
Anh chào anh Hoàng em là cường em đang làm dự án có liên quan tới Chromium em cũng đang cố chuyển source để dùng IDE Android Studio nhưng em bị vướng một lỗi duplicate zipException chưa sửa được, em hỏi anh là nhóm anh có chuyển được sang Android studio không, nếu được anh có thể hướng dẫn cách làm sơ qua cho em được không ah?

Vào 12:35:29 UTC+7 Thứ Hai, ngày 01 tháng 6 năm 2015, MinhHoang To đã viết:
Reply all
Reply to author
Forward
0 new messages