-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UIAUTOMATORVIEWER: SWT folder does not exist on MAC #1243
Comments
This repository is for issues with the android.test libraries not studio tools. I'd suggest to file this bug into https://source.android.com/setup/contribute/report-bugs 'Android Studio" |
Hello, facing the same issue yet. let me know if anybody finds the solution for this. |
same problem,see like incompatible m1 |
I am facing similar issue. Tried to export path of ANDROID_SWT but its not working! |
Any Solution for this |
I experience this also. Please let me know if a solution is found |
No solution found!
Waiting for android team devs to look into this issue.
On Mon, 2 May 2022 at 10:44, jlmalone ***@***.***> wrote:
I experience this also. Please let me know if a solution is found
—
Reply to this email directly, view it on GitHub
<#1243 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHLNTKDAZN3IGXQOBJELMKLVH5QC5ANCNFSM5MGRCELQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Thanks & Regards,
Manisha Joshi | Developer- iOS
Cell / Whatsapp : +91- 7987609280
Skype: manishajoshi082014
|
Same problem on mac book pro with apple silicon M1 Pro |
I'm facing the same issue. I use mac book pro with apple silicon M1 Pro |
I managed to solve this by adding JAVA_HOME path in my .zshrc file (I'm using MBP m1): Before I had this path and it didn't work: But it's very important to download JDK SE from Oracle web site (it's called something like "jdk-8u333-macosx-x64"). Before I had Java 18 installed and it seems like it didn't work. So now all related paths in the . zshrc file are: export PATH=${JAVA_HOME}/bin:$PATH I guess that the last are not needed, but I'm not really experienced, so I leave these in the paths as well. |
the same issues with mba m1 |
This work for Mac air M1. |
This reference helped me to fix this issue on My MacBook pro m1, https://www.youtube.com/watch?v=raG9TJWKxR4 |
confirming this worked for me as of now. Initially it wasn't working because I had java_home set to Android Studio in my ~/.zshrc
I made sure to point to another jvm I had already installed..
Possibly in anyone's case point to the java_home set by default. I am just glad there is a way to get this fixed because I really miss this automator for several years already. |
I've made a fork of uiautomatorviewer because of similar issues - https://github.com/TarCV/uiautomatorviewer-gradle Works good for me so far. Hope it would be useful for others too. |
Re: the closing #1243 (comment) There are numerous similar issues open on the Google IssueTracker, followers might want to vote these if they're affected. Also I think |
For me another prerequisite is it's also depends on the JDK version, for me the 1.8.0.331 working well, however 1.8.0.381 doesn't |
works for me! macbook air m1 (I changed my jdk from "jdk-8u381-macosx-aarch64" to "jdk-8u202-macosx-x64") |
This hack from this blog works: https://blog.i1nfo.com/posts/uiautomatorviewer/index.html#Preparations |
I am having macbook m3 pro tried all the above things still unable to start the ui automatorviewer |
All above tricks didn't work for me on M3 MBP. |
All above tricks didn't work for me on M2 MBP. |
Use Jdk 1.8 and replace SWT.jar on "tools/lib/x86_64". https://download.eclipse.org/eclipse/downloads/drops4/R-4.19-202103031800/download.php?dropFile=swt-4.19-cocoa-macosx-x86_64.zip |
Description
Hi there,
When I try to run UIAUTOMATORVIEWER I get the following error:
**
SWT folder '/Users/XXXX/Library/Android/sdk/tools/lib/aarch64' does not exist.
Please export ANDROID_SWT to point to the folder containing swt.jar for your platform.
**
Here's my bash profile
**
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=${JAVA_HOME}/bin:$PATH
export ANDROID_HOME=/Users/$(whoami)/Library/Android/sdk
export PATH=$PATH:/usr/local/git/bin:/usr/local/bin:
export PATH=$PATH:$ANDROID_HOME/platforms-tools
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools/lib
**
Here's my Java version:
**
java version "17.0.1" 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)
**
Here's my Mac info: Mac OS Big Spur, M1 ship
Thank you
Steps to Reproduce
Expected Results
Actual Results
AndroidX Test and Android OS Versions
Link to a public git repo demonstrating the problem:
The text was updated successfully, but these errors were encountered: