Hi Luis,
I have made changes as per your suggestions.
Ex:
I added $PATH at the end of all the paths and updated the ANDROID_HOME path.
Also, removed the duplicate Python path.
Though, most of the commands have started working in terminal but I have some queries which are as follow:
- When I open an emulator in Android Studio it throws a pop-up that says, " AVD Manager: unable to locate adb.".
Is there any solution for this pop-up?
2. In your comment you suggested to export the path only once. Should I add "export path" at the end of each path or at the
last line of the file?
Please check the below .bash_profile changes and do let me know if any other change is required.
-----------------------------------------------------
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_301.jdk/Contents/Home
PATH=$JAVA_HOME/bin:$PATH
export M2_HOME=/Applications/Maven/apache-maven
export M2=$M2_HOME/bin
PATH=$M2:$PATH
export ANT_HOME=/Applications/Ant/apache-ant
PATH=$ANT_HOME/bin:$PATH
export ANDROID_HOME=/Users/dreammapper/Library/Android/sdk
export ANDROID_SDK=$ANDROID_HOME
PATH=$ANDROID_HOME/build-tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH
export PATH
# Setting PATH for Python 3.9
# The original version is saved in .bash_profile.pysave
PATH=/Library/Frameworks/Python.framework/Versions/3.9/bin:$PATH
export PATH
# Setting PATH for Appium
PATH=/usr/local/lib/node_modules/appium:$PATH
export PATH
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:$PATH
export PATH