如何导入Action Bar Sherlock? android 工作室
How to import Action Bar Sherlock? android studio
我想导出和导入我在 Android 中使用 Eclipse 的 gradle 项目。
关于 ActionBarSherlock
将项目导入 Android Studio 时出现问题
android {
compileSdkVersion 'Google Inc.:Google APIs:17'
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.matetek.Hello"
minSdkVersion 14
android:targetSdkVersion="23"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:18.0.+'
}
无法使用
导入com.actionbarsherlock.app.ActionBar
进口com.actionbarsherlock.app.SherlockFragmentActivity
还有
Error:(10, 0) Cause: startup failed:
build file 'C:\Work\Hello\build.gradle': 10: Statement labels may not be used in build scripts.
In case you tried to configure a property named 'android', replace ':' with '=' or ' ', otherwise it will not have the desired effect.
@ line 10, column 17.
android:targetSdkVersion="23"
帮帮我
对不起我英语不好
将 android:targetSdkVersion="23"
更改为 targetSdkVersion 23
它将起作用。
有关详细信息,请访问开发者网站:Android Build Configuring
也使用最新的支持库
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:23.1.0'
首先,Actionbarsherlock library 作者在 2 年前就弃用了。
今天不用这个库了
使用 AppCompat 库,这样您就可以使用所有新功能和新支持库(作为设计支持库)。
你的问题在这里。
defaultConfig {
android:targetSdkVersion="23"
}
在
中更改此行
defaultConfig {
targetSdkVersion 23
}
关注
不能同时使用 ActionbarSherlock 和 Appcompat 库。
他们使用相同的属性。
我想导出和导入我在 Android 中使用 Eclipse 的 gradle 项目。
关于 ActionBarSherlock
将项目导入 Android Studio 时出现问题 android {
compileSdkVersion 'Google Inc.:Google APIs:17'
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.matetek.Hello"
minSdkVersion 14
android:targetSdkVersion="23"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:18.0.+'
}
无法使用
导入com.actionbarsherlock.app.ActionBar
进口com.actionbarsherlock.app.SherlockFragmentActivity
还有
Error:(10, 0) Cause: startup failed:
build file 'C:\Work\Hello\build.gradle': 10: Statement labels may not be used in build scripts.
In case you tried to configure a property named 'android', replace ':' with '=' or ' ', otherwise it will not have the desired effect.
@ line 10, column 17.
android:targetSdkVersion="23"
帮帮我
对不起我英语不好
将 android:targetSdkVersion="23"
更改为 targetSdkVersion 23
它将起作用。
有关详细信息,请访问开发者网站:Android Build Configuring
也使用最新的支持库
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:23.1.0'
首先,Actionbarsherlock library 作者在 2 年前就弃用了。
今天不用这个库了
使用 AppCompat 库,这样您就可以使用所有新功能和新支持库(作为设计支持库)。
你的问题在这里。
defaultConfig {
android:targetSdkVersion="23"
}
在
中更改此行defaultConfig {
targetSdkVersion 23
}
关注
不能同时使用 ActionbarSherlock 和 Appcompat 库。
他们使用相同的属性。