Home > Mobile >  Add butterknife depend on error, for help
Add butterknife depend on error, for help

Time:10-13

In a recent study design and complete electrical contractor "universal framework for Android APP development" this video, when add butterknife dependence, error, a great god taught,

/////////////////////////////build gradle (Project: fastEc)

Buildscript {
Repositories {
Google ()
Jcenter ()
MavenCentral ()
}
Dependencies {
The classpath 'com. Android. Tools. Build: gradle: 3.3.0'
The classpath 'com. Jakewharton: butterknife - gradle - plugin: 10.0.0'
//NOTE: Do not place your application dependencies here; They belong
//in the individual module build. Gradle files
}
}

Allprojects {
Repositories {
Google ()
Jcenter ()

}
}

The task the clean (type: Delete) {
The delete rootProject. BuildDir
}

///////////////////////////////////build gradle (Project: example)
Apply the plugin: '. Com. Android application '

Android {
CompileSdkVersion 28
DefaultConfig {
ApplicationId "com. Diabin. Fastec. Example"
MinSdkVersion 15
TargetSdkVersion 28
VersionCode 1
VersionName "1.0"
TestInstrumentationRunner "android. Support. The test. The runner. AndroidJUnitRunner"
}
BuildTypes {
Release {
MinifyEnabled false
ProguardFiles getDefaultProguardFile (' proguard - android - optimize. TXT '), 'proguard - rules. Pro'
}
}
}

Dependencies {
Implementation 'com. Android. Support: appcompat - v7:28.0.0'
Implementation 'com. Android. Support. The constraint, the constraint - layout: 1.1.3'
Implementation project (' : latte_ec ')
Implementation project (' : latte_compiler ')
}

//////////////////////////////////////////build gradle (Project: latte_core)
Apply the plugin: 'com. Android. Library'
Apply the plugin: 'com. Jakewharton. Butterknife'

Android {
CompileSdkVersion 28

DefaultConfig {
MinSdkVersion 15
TargetSdkVersion 28
VersionCode 1
VersionName "1.0"
TestInstrumentationRunner "android. Support. The test. The runner. AndroidJUnitRunner"
}

BuildTypes {
Release {
MinifyEnabled false
ProguardFiles getDefaultProguardFile (' proguard - android - optimize. TXT '), 'proguard - rules. Pro'
}
}
}

Dependencies {
Implementation fileTree (include: [' *. Jar '], dir: 'libs')
API 'com. Android. Support: appcompat - v7:28.0.0'
TestImplementation 'junit: junit: 4.12'
AndroidTestImplementation 'com. Android. Support. Test: runner: 1.0.2'
AndroidTestImplementation 'com. Android. Support. Test. Espresso: espresso - core: 3.0.2'
Implementation project (' : latte_annotations')
//fonts icon, after the introduction of third-party libraries need to eliminate repetitive package
API (' com. Joanzapata. Iconify: android - iconify - fontawesome: 2.2.2 ') {
Exclude group: 'com. Android. The support, the module:' support - v4 '
}
API (' com. Joanzapata. Iconify: android - iconify - ionicons: 2.2.2 ') {
Exclude group: 'com. Android. The support, the module:' support - v4 '
}
//fragment
//appcompat - v7 is required
API 'me. Yokeyword: fragmentation: 1.3.6'
//If you don 't want to extends SupportActivity/fragments and he like to customize your own support, just rely on fragmentation - core
//the compile 'me. Yokeyword: fragmentation - core: 1.3.6'
//To get SwipeBack feature, rely on both fragmentation & amp; Fragmentation - swipeback
API 'me. Yokeyword: fragmentation: 1.3.6'
//Swipeback is on fragmentation. Refer to SwipeBackActivity/fragments for Customized SupportActivity/Fragment
API 'me. Yokeyword: fragmentation - swipeback: 1.3.6'
//To simplify the communication between Fragments could.
API 'me. Yokeyword: eventbus - activity - scope: 1.1.0'

//butterknife rely on

API 'com. Jakewharton: butterknife: 10.0.0'
AnnotationProcessor 'com. Jakewharton: butterknife - compiler: 10.0.0'
}

Above is the main gradle Settings, error message under the

Org. Gradle. API. The tasks. TaskExecutionException: Execution failed for task ': example: processDebugManifest'.
The at org. Gradle. API. Internal. The tasks. Execution. ExecuteActionsTaskExecuter. ExecuteActions (ExecuteActionsTaskExecuter. Java: 110)
The at org. Gradle. API. Internal. The tasks. Execution. ExecuteActionsTaskExecuter. Execute (ExecuteActionsTaskExecuter. Java: 77)
The at org. Gradle. API. Internal. The tasks. Execution. OutputDirectoryCreatingTaskExecuter. Execute (OutputDirectoryCreatingTaskExecuter. Java: 51)
The at org. Gradle. API. Internal. The tasks. Execution. SkipUpToDateTaskExecuter. Execute (SkipUpToDateTaskExecuter. Java: 59)
The at org. Gradle. API. Internal. The tasks. Execution. ResolveTaskOutputCachingStateExecuter. Execute (ResolveTaskOutputCachingStateExecuter. Java: 54)
The at org. Gradle. API. Internal. The tasks. Execution. ValidatingTaskExecuter. Execute (ValidatingTaskExecuter. Java: 59)
The at org. Gradle. API. Internal. The tasks. Execution. SkipEmptySourceFilesTaskExecuter. Execute (SkipEmptySourceFilesTaskExecuter. Java: 101)
The at org. Gradle. API. Internal. The tasks. Execution. FinalizeInputFilePropertiesTaskExecuter. Execute (FinalizeInputFilePropertiesTaskExecuter. Java: 44)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related