找到你要的答案

Q:Unable to detect android phone via adb

Q:无法检测Android手机通过亚行

I am using Adobe Flash CS5.5 to develop flash air applications on Android. However, I just can't seem to get my phone visible to Flash.

I have a Samsung Galaxy GT-N7000 (Galaxy Note). I have rooted the phone with cyanogenmod 10.1.3-n7000. I have enabled "usb debugging" in the phone settings. I'm running this on Windows 7 Professional 32-bit.

When I connect my phone to the PC, I am able to see it as GT-N7000 under Device Manager -> Portable Devices heading. I am also able to copy files to/from this device without any issues.

The adb version installed on my system in the flash installation folder is 1.0.26. When I try to run the flash animation on my phone, it can't seem to detect it. I get the error message "Could not find an android device to connect to. Please ensure that you have the phone connected, the correct drivers installed, and the phone has USB device debugging enabled".

I'm at a loss for how to install the usb driver, as mine is a galaxy note, but is using cyanogenmod. I couldn't find the SDK manager in the flash installation folder, but ran the SDK manager from the android-sdk folder which I have parallel installed for developing android applications using Android Studio. I installed the Google USB drivers from that location. I'm not sure if this will help Flash detect the phone.

I have also tried using the usb connection mode as MTP, PTP, as well as mass storage. But no difference.

What else could be the issue? Any pointers? Please excuse me if any details are missing. I'll add them as they are pointed out.

UPDATE: Found a similar query at Android Device Connectivity in Adobe Flash Pro CS6 Win7 x64.. However, doesn't work for me! :(

Workaround (well, sort of!):I am able to copy the .apk file to the phone memory, and then install it. I had to enable "Unknown Sources- Allow installation of apps from unknown sources". However, I am still not able to publish directly to the phone, nor am I able to debug it from Flash.

我使用的Adobe Flash CS5.5开发Flash AIR应用程序在Android。然而,我似乎不能让我的手机看到闪光。

I have a Samsung Galaxy GT-N7000 (Galaxy Note). I have rooted the phone with cyanogenmod 10.1.3-n7000. I have enabled "usb debugging" in the phone settings. I'm running this on Windows 7 Professional 32-bit.

当我把我的电话和电脑,我能看到它gt-n7000在设备管理器- >;便携设备的标题。我也可以复制文件到/从这个设备没有任何问题。

The adb version installed on my system in the flash installation folder is 1.0.26. When I try to run the flash animation on my phone, it can't seem to detect it. I get the error message "Could not find an android device to connect to. Please ensure that you have the phone connected, the correct drivers installed, and the phone has USB device debugging enabled".

我不知如何安装USB驱动程序,我的是Galaxy Note,但使用的CyanogenMod。我找不到在Flash安装文件夹SDK经理,但跑SDK经理从Android SDK文件夹我平行安装的Android应用程序开发使用Android的工作室。我安装了谷歌的USB驱动程序的位置。我不知道如果这将有助于闪光灯检测手机。

我也试着用USB连接模式为MTP,PTP,以及海量存储。但无差异。

还有什么问题?任何指针?如果缺少任何细节请原谅我。我会加他们,因为他们指出。

更新:发现在Adobe Flash Pro CS6 Win7 x64的Android设备连接一个类似的查询然而,不适合我!:(

解决方法(嗯,种!):我可以复制.apk文件到手机内存,然后安装它。我必须启用“未知来源-允许从未知来源安装应用程序”。然而,我仍然无法直接发布到手机,我也无法调试它从Flash。

answer1: 回答1:

Solved it! Since Flash connectivity didn't seem to be working, I thought it better to see if I can at least make Android Studio work with my phone. Tried all the stuff possible, including using the SDK Manager to install the Google USB Driver. Nothing worked.

Since my phone IS a GT-N7000, but with CyanogenMod, I thought that the Samsung USB driver wouldn't work for it.

Finally, after trying a lot with all the other methods, I did the simplest thing possible. Found the Samsung GT-N7000 usb driver (downloaded from the mirror link in this XDA forum post http://forum.xda-developers.com/showthread.php?t=1755001), installed it, and EVERYTHING started working! Flash, Android Studio, etc!

For those who don't want to download just the drivers, or are hesitant to download from unverified links, you can download and Install Samsung Kies, and it'll do the required installation of correct driver!

Duh! Sometimes, the simplest things are the only steps required!

它解决!由于Flash连接似乎没有工作,我想最好看看我是否可以至少使Android工作室与我的手机工作。尝试了所有的东西,包括使用SDK管理器安装谷歌USB驱动程序。没有工作。

因为我的手机是一个gt-n7000,但CyanogenMod,我认为三星的USB驱动程序不会为它工作。

最后,在尝试了很多其他方法之后,我做了最简单的事情。发现三星gt-n7000 USB驱动程序(在XDA论坛后http://forum.xda-developers.com/showthread.php镜像下载链接吗?吨= 1755001),安装它,一切开始工作!Flash,Android工作室等!

对于那些不想下载的驱动程序,或是犹豫,从未经核实的链接下载,你可以下载并安装三星韩国,它会要求正确安装驱动程序!

咄!有时候,最简单的事情是唯一的步骤!

answer2: 回答2:

NOTE: Please see my first answer for a simple way to solve this. If this doesn't work for you, you can try the steps documented here.

I'm posting follow up problems and how I resolved them. Since this update was rather long and might not occur for others, I have posted it as a separate answer. It is still pertinent to this question, so I have kept it as an alternate answer.

**

Moderators: please let me know if there is a more elegant way of doing this, and I will do the needful.

**

UPDATE: I had uninstalled Flash for some reason, and re-installed it again after two months or so. However, I found that I was unable to publish to the phone after this. Resolved it finally as below.

Sometimes, even after the device drivers get installed, and show up in device manager as an adb interface, you might not be able to publish to the phone. Ensure that you have enabled "developer options" in the phone, and that "USB debugging" option is enabled. This might solve your problem.

However, in my case, this didn't work. Flash was just stuck at the "Publishing" phase, and didn't proceed to launch my project on the phone.

In such a case, open up a command prompt (in windows) and query the devices using the command "adb devices".

If the device shows up as "offline" status, try connecting the phone to another port. Again, this too didn't work out for me.

Finally, I updated the Platform SDK on my machine using the "SDK Manager". Once updated, I re-ran the command "adb devices" on the command prompt, and voila! The phone is now listed properly without any "offline" status.

Now the problem! The problem is that Flash CS5.5 uses an old version of the Air runtime (which comes with it's own version of adb.exe). In order to update this, I downloaded the latest version of AIR SDK from http://www.adobe.com/devnet/air/air-sdk-download.html. However as Flash 5.5 doesn't have a straight-forward way to use the latest version of the SDKthere were some steps that I had to follow to do so. The original document is at http://code.tutsplus.com/tutorials/enable-the-latest-air-sdk-in-flash-professional-cs55--active-11488, but I am inlining it here based upon my own changes to the steps mentioned in the web page, as well as to ensure that these steps don't become dead links later on.

Step 1: Download the Latest SDK

Download the latest AIR SDK from the following link: http://www.adobe.com/products/air/sdk/ Extract the downloaded file into a separate folder on your desktop

Step 2: Backup Your Current SDK Folder

Go to the Adobe Flash CS5.5 installation folder ( should be "C:\Program Files\Adobe\Adobe Flash CS5.5" on 32 bit Windows, "C:\Program Files (x86)\Adobe\Adobe Flash CS5.5" on 64 bit Windows, and "Applications/Adobe Flash CS5.5" on OS X).

Rename the AIR2.6 folder to AIR2.6_OLD. Create a new folder and name it AIR2.6.

Step 3: Create the New SDK Folder Copy the contents of the latest AIR SDK folder (that you’ve created on your desktop) to the AIR2.6 folder. Browse to the AIR2.6/frameworks/libs/air/ folder in the Adobe Flash CS5.5 folder and copy the airglobal.swc file. Paste the SWC file into Adobe Flash CS5.5/Common/Configuration/ActionScript 3.0/AIR2.6/, overwriting the existing airglobal.swc file.

Step 4: Final Configuration Settings

Go to Adobe Flash CS5.5/Common/Configuration/Players/ and open the following files using a text editor (you may need administrative privileges to edit these files in the application folder in Windows):

AdobeAIR2_6.xml AiriPhone.xml Android.xml

NOTE: Player element and how to point it to the right version. Go to https://helpx.adobe.com/air/air-releasenotes.html and start counting from 2.6 version as 11, to the version updated by you, incrementing every time you see a "user release notes" for each version. For easier reference, version 19 should be considered as version 30.

Change the version attribute of the player element from 11 to this calculated version (30 in my case) in each file. Don’t forget to save them after you’re done editing.

Restart Flash, and try publishing to the phone. It worked for me! :)

注:请参阅我的第一个答案,一个简单的方法来解决这个问题。如果这不适合你,你可以尝试这里记录的步骤。

我张贴跟进的问题,我如何解决他们。由于此更新是相当长的,可能不会发生的其他人,我把它作为一个单独的答案。这个问题仍然是相关的,所以我一直把它作为一个备用的答案。

* *

Moderators: please let me know if there is a more elegant way of doing this, and I will do the needful.

* *

更新:我已经卸载了Flash的一些原因,并重新安装一遍后两个月左右。然而,我发现,我无法发布到手机后。最终解决如下。

有时,即使设备驱动程序被安装,并显示在设备管理器作为亚行接口,您可能无法发布到手机。确保已启用“开发者选项”在电话中,和“USB调试”选项启用。这可能解决你的问题。

然而,在我的情况下,这并没有工作。Flash只是停留在“发布”阶段,并没有启动我的项目在电话上。

在这种情况下,打开命令提示符(在Windows)和查询设备使用命令“亚行设备”。

如果设备显示为“脱机”状态,请尝试将电话连接到另一个端口。同样,这对我也没有效果。

最后,我更新SDK平台在我的机器上使用“SDK管理器”。一旦更新,我重新运行命令adb devices在命令提示符,然后!该手机现在上市,没有任何“离线”状态。

现在问题!问题是,Flash CS5.5使用空气运行旧版本(这是它自己的亚行。exe版本)。为了更新,我下载的SDK的最新版本http://www.adobe.com/devnet/air/air-sdk-download.html空气。然而,Flash 5.5没有一个直截了当的方式使用最新版本的sdkthere一些步骤,我不得不跟着这样做。原文件是在http://code.tutsplus.com/tutorials/enable-the-latest-air-sdk-in-flash-professional-cs55--active-11488,但是我还有这里基于我自身改变网页中提到的步骤,以及确保这些步骤不成为后来死链接。

步骤1:下载最新的SDK

Download the latest AIR SDK from the following link: http://www.adobe.com/products/air/sdk/ Extract the downloaded file into a separate folder on your desktop

步骤2:备份当前的SDK文件夹

Go to the Adobe Flash CS5.5 installation folder ( should be "C:\Program Files\Adobe\Adobe Flash CS5.5" on 32 bit Windows, "C:\Program Files (x86)\Adobe\Adobe Flash CS5.5" on 64 bit Windows, and "Applications/Adobe Flash CS5.5" on OS X).

Rename the AIR2.6 folder to AIR2.6_OLD. Create a new folder and name it AIR2.6.

Step 3: Create the New SDK Folder Copy the contents of the latest AIR SDK folder (that you’ve created on your desktop) to the AIR2.6 folder. Browse to the AIR2.6/frameworks/libs/air/ folder in the Adobe Flash CS5.5 folder and copy the airglobal.swc file. Paste the SWC file into Adobe Flash CS5.5/Common/Configuration/ActionScript 3.0/AIR2.6/, overwriting the existing airglobal.swc file.

步骤4:最终配置设置

Go to Adobe Flash CS5.5/Common/Configuration/Players/ and open the following files using a text editor (you may need administrative privileges to edit these files in the application folder in Windows):

AdobeAIR2_6.xml AiriPhone.xml Android.xml

NOTE: Player element and how to point it to the right version. Go to https://helpx.adobe.com/air/air-releasenotes.html and start counting from 2.6 version as 11, to the version updated by you, incrementing every time you see a "user release notes" for each version. For easier reference, version 19 should be considered as version 30.

Change the version attribute of the player element from 11 to this calculated version (30 in my case) in each file. Don’t forget to save them after you’re done editing.

重新启动Flash,并尝试发布到手机。它为我工作!:)

android  flash  adobe  adb  cyanogenmod