问题
I am using android studio 3.1 for some development.
But Its does not showing android
option under Tools
menu. Whereas Android studio 3.0 doesn't have this problem.
Here is the screenshot of android studio 3.1 Tools menu:
See missing the android
option.
I think this is some configuration related problem as it doesn't exist in android studio 3.0. Basically I need Enable ADB Integration
option. Is there any way to show the option in Tools menu?
回答1:
If you're looking for a way to fix the buggy connection to a physically connected USB device without restarting Android Studio, this might help:
Preferences > Build, Execution & Deployment > Debugger
Then check or uncheck the box Use libusb backend
回答2:
Can u find the android in the Help>action? like shown below.
click on Find Action or Ctrl+Shift+A
After that try searching"Android" in the search bar.
回答3:
Google has officially removed the Memory Monitor tool in the Android studio 3+ and brings new Tool that is Memory Profile.
From the documentation for the tool:
To open Memory Profiler, follow these step:
- Click View > Tool Windows > Android Profiler (you can also click Android Profiler in the toolbar).
- Select the device and app process you want to profile from the Android Profiler toolbar. If you've connected a device over USB but don't see it listed, ensure that you have enabled USB debugging.
- Click anywhere in the MEMORY timeline to open the Memory Profiler.
See the Google's Official Statement.
回答4:
From the android studio 3.1, android option menu is deleted and you can read it from the documentation : https://developer.android.com/studio/profile/monitor.html if you want to open it, open from the android-sdk/tools/ directory then run monitor.bat hope this help you guys
回答5:
In my case, after update android studio separated that field from tools and located it at bottom-right corner.
回答6:
I have faced the same issue after many tried I found the solution. In Android Studio 3.1.3, Click File> Settings > Debugger > Uncheck Kill the debug process immediately and apply then again check it.
回答7:
Probably because the Android options are already there, provided without an additional sub-menu.
Here is what there is under the Tools menu in Android Studio 3.0, all options are same, just grouped together:
EDIT: There are some missing items such as 'Enable ADB Integration', for these you can always use the Help > Find Action... where you type in the search, it will look like this:
回答8:
adb seems to be deprecated in android studio 3.1. On Ubuntu I can run adb from the command line using Android/Sdk/platform-tools/adb and I can run the Device Monitor using Android/Sdk/tools/monitor. More information may be available at https:/developer.android.com/studio/profile/monitor.html
回答9:
You can use Android Profiler if you want to measure app performance and inspect activity for CPU, RAM and Network instead of using ADB Integration.
For more Info. check this out Measure app performance with Android Profiler
回答10:
Add navigation folder inside res and add a file like below file. In this file, we have two activities that are UI will show in this navigation file.
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/nav_graph"
app:startDestination="@id/mainActivity">
<activity
android:id="@+id/mainActivity"
android:name="com.noman.navigation.MainActivity"
android:label="activity_main"
tools:layout="@layout/activity_main" />
<activity
android:id="@+id/oneActivity"
android:name="com.noman.navigation.OneActivity"
android:label="one_activity"
tools:layout="@layout/one_activity" />
</navigation>
you can also add this navigation via right click in res folder and section add a new resource.
By this, you will be able to see navigations on UI.
回答11:
I got the same problem.
Check you don't have any errors on the bottom of android studio. I got one with sdk build. If you got the same click on the link in error log.
Next go to file -> settings -> Appearance&Behavior -> Menus and Toolbars
Roll up Main menu -> Tools.
Choose Android.
Click on 'Apply' button and 'OK'. Wait for a while (gradle progress-bar on the bottom).
I hope that I solve your problem.
来源:https://stackoverflow.com/questions/47904505/android-studio-3-1-does-not-showing-android-option-under-tools-menu