应该说这是个不是BUG的BUG,不存在什么技术问题,但是就是这个导致项目停滞了很久,有类似遭遇的筒子参考之

大概描述下这个问题,由于公司上外网要用代理,所以在很多软件下载前要设置proxy

Ubuntu 12.04下面的Android SDK Manager还有eclipse的用来设置proxy的菜单栏不见了,尼玛,这可把我给搞坏了

1.一开始以为是JDK的问题,又去卸载了OpenJDK去找Sun的JDK,尝试了各种版本,未果
2.以为是Ubuntu的版本问题,换了最新的12.10,未果
3.以为是虚拟机的问题,从VMware player换到VirtualBox,未果
4.后来查了下资料,说从eclipse启动的sdk manager不会显示,但是直接启动的会有,未果
5.人家说套装ADT里面的sdk里面是ok的,我是单独下了only那个,但是也未果
6.设置环境变量,试图避免在software里面设置proxy,但是也未果,整了半天也没整出个什么东西来,不过想学linux的可以看鸟哥的linux私房菜,很不错,是台湾的
7.还有人说,编辑sdk manager的config文件添加,也未果
。。。
今天突然Google到了说,在标题栏上面Maximize后,就有了,果然~!尼玛!

感觉解决了一个BUG就像便秘之后突然能大出来那种淋漓酣畅,也是这也就是IT屌丝的一种最原始的快乐吧。

========
另外分享一下找到灵感的帖子:
Ubuntu Linux: Getting ADB working

Technical Support Team
posted this on October 11, 2012 10:48 am


[size=1em]Issue
[size=1em]How do I get the Android Debug Bridge (ADB) command to work on my Ubuntu Linux machine?
[size=1em]Solution
[size=1em]To get ADB up and running:
  • In Ubuntu Software Center search for openjdk-6-jdk and install it.
  • Go to Android.com and click Get the Android SDK > Other platforms and install the Android SDK for Linux. Save the TAR file to your Downloads directory.
  • Right-click the TAR file and click Open with Archive Manager.
  • Open a terminal. If you're not familiar with this, click the Ubuntu Dashboard and type terminal in the search box.
  • Exit the terminal and create a new terminal--this updates the PATH variable. Whenever you start a new terminal, the PATH variable is set for you.
  • Change directory: cd ~/Downloads/android-sdk-linux/tools and type: ./android
  • Click Android SDK Platform-tools and click the Install 1 package button.
  • Right-click Android SDK Manager in the top bar and click Maximize. Mouse over the Android SDK Manager name in the title bar and click Tools > Manage Add-on Sites.
  • Follow the Linux section steps in Install NOOK SDK Add-on.
  • Set the PATH variable, which makes entering commands in the terminal much easier when working with Android tools. If you don't use this step, you need to proceed each Android command with ./for example:   ./android versus typing android after setting the PATH variable. Assuming you saved the Android TAR file to the Downloads directory, copy and paste this command into your terminal:

    echo -e '\nexport PATH=${PATH}:~/Downloads/android-sdk-linux/tools:~/Downloads/android-sdk-linux/platform-tools' >> ~/.bashrc
  • Download the attached ubuntu_adb_drivers.zip file at the end of this article.
  • From the Terminal, run: gksudo file-roller

    Using the user interface, locate the downloaded zip file and click Extract and navigate to filesystem > etc > udev > rules.d

    To locate your Downloads directory, open another Terminal and type: pwd and ls
  • Run sudo reload udev.
  • Type these commands:

    android update adb
    adb kill-server
    adb start-server
    adb devices

    If you see a serial number under list of devices attached, then the adb devices command is successful. If the adb devices command is not successful, follow the directions in Mac OS and Linux about adding a device ID. Start on Step 3 of that section.
  • To run the emulator:
    • In the command line, type:  android
    • In the SDK Manager, right-click Android SDK Manager in the top bar and click Maximize. Mouse over the Android SDK Manager name in the title bar and click Tools > Manage AVDs.
    • In the Android Virtual Device Manager, click New.
    • Specify an AVD name and set the Target to NOOK SDK (Barnes and Noble) - API Level 15 for NOOK HD and NOOK HD+, or to Barnes and Noble API Level 10 for NOOK Tablet, or to level 8 for the NOOK Color.
      Click Create AVD.
    • Click Start and in the Launch Options window, click Launch.
  • To install an app on your NOOK device:
    • If not already connected, connect your NOOK device to your computer.
    • Change directory to where your APK file resides. If you don't have an APK, get the NookUninstaller.apk file attached to Helper application to uninstall apps.
    • Type this command:  adb install app_name.apk
    • To access your app, see Access Apps You Sideload.


共收到 12 条回复
xywhere · #2 · 2013-4-25 10:29:04  回复 支持 反对
眼花缭乱。。。留个坐标
小马 · #3 · 2013-4-25 10:40:17  回复 支持 反对
啥意思?没看懂你是咋解决的?在标题栏上面Maximize,这句话怎么解释?

点评

Maximize -》俗称 最大化  详情 回复 发表于 2013-4-25 12:08
阎魔あい · #4 · 2013-4-25 10:42:44  回复 支持 反对
果然又是技术贴。。。。。。。。。。。。。。。

点评

额~ 软院人不就这点小快乐吗  详情 回复 发表于 2013-4-25 12:11
admin · #5 · 2013-4-25 12:08:21  回复 支持 反对
小马 发表于 2013-4-25 10:40
啥意思?没看懂你是咋解决的?在标题栏上面Maximize,这句话怎么解释?

Maximize -》俗称 最大化

点评

就是说是给隐藏起来了?最大化就能看到了?这个。。。不能算bug吧?  详情 回复 发表于 2013-4-25 12:17
admin · #6 · 2013-4-25 12:11:04  回复 支持 反对
阎魔あい 发表于 2013-4-25 10:42
果然又是技术贴。。。。。。。。。。。。。。。

额~ 软院人不就这点小快乐吗
小马 · #7 · 2013-4-25 12:17:19  回复 支持 反对
admin 发表于 2013-4-25 12:08
Maximize -》俗称 最大化

就是说是给隐藏起来了?最大化就能看到了?这个。。。不能算bug吧?

点评

所以帖子一开始就说了,是一个不是BUG的BUG  详情 回复 发表于 2013-4-25 12:21
admin · #8 · 2013-4-25 12:21:51  回复 支持 反对
小马 发表于 2013-4-25 12:17
就是说是给隐藏起来了?最大化就能看到了?这个。。。不能算bug吧?

所以帖子一开始就说了,是一个不是BUG的BUG

点评

。。。。。给跪了。。。。不过,倒是提了个醒儿,以后Ubuntu环境下不能这么玩儿~刘师兄栽树,我们乘凉~啊,今天原本说是13.04发布的日子,可惜,延期了啊。。。今天这帖子很有纪念意义  详情 回复 发表于 2013-4-25 12:46
小马 · #9 · 2013-4-25 12:46:35  回复 支持 反对
admin 发表于 2013-4-25 12:21
所以帖子一开始就说了,是一个不是BUG的BUG

。。。。。给跪了。。。。不过,倒是提了个醒儿,以后Ubuntu环境下不能这么玩儿~刘师兄栽树,我们乘凉~啊,今天原本说是13.04发布的日子,可惜,延期了啊。。。今天这帖子很有纪念意义

点评

只是感觉这个很蛋疼,浪费了好几天的事情  详情 回复 发表于 2013-4-25 12:55
admin · #10 · 2013-4-25 12:55:21  回复 支持 反对
小马 发表于 2013-4-25 12:46
。。。。。给跪了。。。。不过,倒是提了个醒儿,以后Ubuntu环境下不能这么玩儿~刘师兄栽树,我们乘凉~啊 ...

只是感觉这个很蛋疼,浪费了好几天的事情
runksun · #11 · 2013-4-25 16:13:01  回复 支持 反对
LZ也是做android的啊。。受教了~

点评

客串一下,小白而已  详情 回复 发表于 2013-4-25 16:14
admin · #12 · 2013-4-25 16:14:59  回复 支持 反对
runksun 发表于 2013-4-25 16:13
LZ也是做android的啊。。受教了~

客串一下,小白而已
runksun · #13 · 2013-4-25 17:11:14  回复 支持 反对
看到了LZ这个蛋疼的事情,刚才在activity中向service中传递数据,犯了2B,一直在service的onBind中作相应操作,后来一直调试发现米有接收到数据,一直以为intent.setClass(null,MyService.class)的时候没有启动service,后来才发现,自己犯了一个很低级的错误。。接受函数写错地方了。。。囧爆了
回帖
B Color Image Link Quote Code Smilies
Command + Enter
快速回复 返回顶部 返回列表