我在编译我的测试项目时遇到了 3 天(和晚上)的问题gradle
我的错误是
error: package org.holoeverywhere.app does not exist
import org.holoeverywhere.app.Activity;
我有以下结构:
MySimpleProject
-SimpleApp
--build.gradle
-settings.gradle
-build.gradle
我的SimpleApp
依赖 HoloEverywhere 库。
build.gradle
从MySimpleProject
是
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.4'
}
}
setting.gradle
从MySimpleProject
是
include ':SimpleApp'
build.gradle
从SimpleApp
apply plugin: 'android'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compile 'org.holoeverywhere:library:1.6.1'
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
}
日志
./gradlew build
The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
:SimpleApp:prepareDebugDependencies
:SimpleApp:compileDebugAidl UP-TO-DATE
:SimpleApp:generateDebugBuildConfig UP-TO-DATE
:SimpleApp:mergeDebugAssets UP-TO-DATE
:SimpleApp:compileDebugRenderscript UP-TO-DATE
:SimpleApp:mergeDebugResources UP-TO-DATE
:SimpleApp:processDebugManifest UP-TO-DATE
:SimpleApp:processDebugResources UP-TO-DATE
:SimpleApp:compileDebug
/home/oleg/AndroidStudioProjects/MySimpleProject/SimpleApp/src/main/java/com/example/mysimpleapp/LoginActivity.java:19: error: package org.holoeverywhere.app does not exist
import org.holoeverywhere.app.Activity;
有谁能够帮我?