Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to establish an Android Development Environment in Ubuntu

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the relevant knowledge of "how to establish an Android development environment in Ubuntu". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

Install Ubuntu Virtual Machine

install Eclipse

The first is to install Eclipse, download Eclipse jee 3.5 Linux version, unzip it. You can set up a shortcut link (soft link) for Eclipse commands on the desktop.

Install and set up Android SDK

Download and install the Android SDK.

Extract the downloaded file to, for example,/opt directory, then set the environment variable, through the/etc/profile file, add a line:

PATH=$PATH:/opt/android-sdk-linux_x86-1.5_r3/tools/

At this point, if you connect your Android device (t mobile g1 in my case), you can do so by:

ADB devices are devices that cannot be found.

You need to use the udev mechanism provided by the linux 2.6 kernel. Create file:

sudo gedit /etc/udev/rules.d/50-android.rules

Add the following to the document:

SUBSYSTEM=="usb", SYSFS{"High Tech Computer Corp. "}=="0bb4″, MODE="0666″

Then, execute the command to make it executable:

chmod a+rx /etc/udev/rules.d/50-Android.rules

Restart the system, you can see the connected mobile phone device through the following command:

adb devices

Or perform:

ddms

Here are screenshots of ddms and ddms screen capture:

"How to build an Android development environment in Ubuntu" is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report