2014-09-29 73 views
0

當我創建值爲Android的L'樣式v21,但是當我cntrl +空間搜索沒有任何android L庫。我檢查了Android SDK的經理,一切都更新。和我使用這些庫中的build.gradle無法看到Theme.Material或Android的東西

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 20 
buildToolsVersion "20.0.0" 

defaultConfig { 
    applicationId "......." 
    minSdkVersion 13 
    targetSdkVersion 20 
    versionCode 3 
    versionName "1.1" 
} 
buildTypes { 
    release { 
     runProguard false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
} 
dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
compile files('libs/commons-net-3.3-sources.jar') 
compile files('libs/commons-net-3.3.jar') 
compile files('libs/commons-net-examples-3.3.jar') 
compile 'com.android.support:appcompat-v7:20.0.0' 
compile 'com.android.support:support-v4:20.0.0' 
compile 'com.google.android.gms:play-services:3.1.+' 
compile 'com.google.android.gms:play-services:5.2.08' 
compile 'com.github.mrengineer13:snackbar:0.4.0' 
} 
android { 
packagingOptions { 
    exclude 'META-INF/LICENSE.txt' 
    exclude 'META-INF/NOTICE.txt' 
} 
} 
+1

我沒有看到任何地方,在那裏你參考L預覽 – tyczj 2014-09-29 13:39:10

+0

參考?那麼我應該在哪裏添加參考L預覽? – massaimara98 2014-09-29 13:40:08

回答

0

你不引用Android L移動任何地方

您gradle這個應該有這些在它

compileSdkVersion 'android-L' 

minSdkVersion 'L' 
targetSdkVersion 'L' 
+0

我必須使用minSdkVersion'L'? – massaimara98 2014-09-29 13:44:53

+0

是的,因爲它只是一個預覽,你不能釋放它到它的Playstore – tyczj 2014-09-29 13:45:30

+0

hımmokey然後非常感謝你 – massaimara98 2014-09-29 13:45:51