Imported module not visible in project explorer Android Studio

Imported module not visible in project explorer Android Studio but exist in project folder.
Gradle sync failed: Cause: failed to find target with hash string 'android-20' in: C:\Users\jas\AppData\Local\Android\sdk
android-20 is for example!
Open file in existing module named build.gradle is located e.g.
c:\Users\me\AndroidStudioProjects\Projects\myModuleNotVisibleInProjectExplorerButExistOnDisk\build.gradle
Check compileSdkVersion and buildToolsVersion if it is identical like your in SDK.
You can to create new module, open build.gradle from this new module and recopy – replace rows compileSdkVersion and buildToolsVersion into invisible
module build.gradle. Save, and rebuild project.
apply plugin: 'com.android.library'

android {
compileSdkVersion 23 // in invisible module has been 19
buildToolsVersion '23.0.2' // in invisible module has been 19.0.1

defaultConfig {
minSdkVersion 7
targetSdkVersion 7
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_5
targetCompatibility JavaVersion.VERSION_1_5
}
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

This entry was posted in Android Studio, Bugs, warnings, errors and tagged . Bookmark the permalink.


Comments are closed.

963 views