0
我使用過Android Studio 1.2。每個SDK都必須具有AsyncTask,但我的Android Studio無法識別該類。即使在導入和自動助手中也不顯示。 的AsyncTask Android Studio中不可
同樣,如果我不寫在建議自動提示
搖籃腳本:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "22.0.0"
defaultConfig {
applicationId "com.appxperts.printknot2"
minSdkVersion 11
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
compile project(':libraries:floatingedittextlibrary')
compile files('libs/gson-2.2.4.jar')
compile 'com.larswerkman:HoloColorPicker:1.5'
compile 'com.doomonafireball.betterpickers:library:1.5.5'
compile 'com.google.android.gms:play-services:3.1.+'
}
如何顯示模塊的gradle腳本? – TheLittleNaruto
如果將「import android.os.AsyncTask;」添加到導入列表中,會發生什麼情況? – Blackbelt
您的腳本對我來說看起來不錯。嘗試什麼皮帶說你第一,如果仍然存在問題,然後做一件事:文件 - >無效緩存/重新啓動 - >無效和重新啓動。 – TheLittleNaruto