So, you have to update Gradle from 1.7 to 1.8.
#Auto import android studio mac how to
The former is the build system itself, the latter is the plugin to the build system that knows how to build Android projectsīut when using the gradle plugin 0.7.+, Android Studio needs Gradle 1.8. File > Settings > Editor > General >Auto Import (Mac: Android Studio > Preferences > Editor > General >Auto Import). Make sure you don't confuse the Gradle version with the Android plugin version. This is current: Mac Android Studio 1.2: Android Studio Menu -> Preferences -> Editor -> General -> Auto Import user23 Jun 16 at 8:23 - rashadb. On the right panel, choose All from the Insert imports on paste drop-down list. Click Editor > General > Auto Import menu item on the left side of the popup Settings dialog. On Windows: If for some reasons auto-import is not enable you can go to settings by typing shortcut: Ctrl+Alt+S. File->Project Structure->Project pane->"Android plugin version". How to automatically import in Android Studio 1. In the Latest Version of Android Studio, the options for Auto-Import is enabled by default, so kudos no need to worry about that. Example 2: how to use old android studio project Look in the SDK Manager what is your highest Android SDK Build-tools version, and copy this version number in your project adle file, in the android/buildToolsVersion property (for me, version was "18.1.1"). gradle file, in the android / buildToolsVersion property (for me, version was "18.1.1"). How to import java project in android studio code exampleĮxample 1: how to use old android studio project Look in the SDK Manager what is your highest Android SDK Build-tools version, and copy this version number in your project build. Just press optionKey & Enter (or return key) together. Previous Post Next Post How to auto import in Android Studio?ġ. in my case it is unzipped in /lab/soft/opencv-4.5.3/OpenCV-android-sdk create a new Android Studio project based on Basic Activity try to import OpenCV module.