Gradle не собирается apk

Ответить
bydirect
Сообщения: 70
Зарегистрирован: 11 июн 2014, 10:36

Gradle не собирается apk

Сообщение bydirect » 03 сен 2015, 19:03

Привет. Пытаюсь собрать apk через gradle в лог выпадают такие ошибки
D:\Apps\MyFirstApp>gradlew.bat assembleRelease
Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0
:preBuild
:preReleaseBuild
:checkReleaseManifest
:preDebugBuild
:prepareComAndroidSupportAppcompatV72300Library
:prepareComAndroidSupportSupportV42300Library
:prepareReleaseDependencies
:compileReleaseAidl
:compileReleaseRenderscript
:generateReleaseBuildConfig
:generateReleaseAssets UP-TO-DATE
:mergeReleaseAssets
:generateReleaseResValues
:generateReleaseResources
:mergeReleaseResources
:processReleaseManifest
:processReleaseResources
:generateReleaseSources
:compileReleaseJava
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy': class file for net.jcip.annotations.GuardedBy not found
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
D:\Apps\MyFirstApp\libs\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class): warning:
Cannot find annotation method 'value()' in type 'GuardedBy'
Note: D:\Apps\MyFirstApp\src\main\java\com\example\myfirstapp\MainActivity.java uses or overrides a depreca
ted API.
Note: Recompile with -Xlint:deprecation for details.
16 warnings
:lintVitalRelease
:compileReleaseNdk
:preDexRelease
:dexRelease

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/v7/app/ActionBar$LayoutParams;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)

:dexRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':dexRelease'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\Android\sdk\build-tools\23.0.0\dx.bat --dex --num-threads=4 --output D:\Apps\MyFirstApp\build\in
termediates\dex\release D:\Apps\MyFirstApp\build\intermediates\classes\release D:\Apps\MyFirstApp\build\int
ermediates\dependency-cache\release D:\Apps\MyFirstApp\build\intermediates\pre-dexed\release\android-suppor
t-v7-appcompat-03c51a0edb1e5b5c8032586f0f5d7291fcaea3ba.jar D:\Apps\MyFirstApp\build\intermediates\pre-dexe
d\release\classes-45b22da3e7a75f9cbcb0b36364f7a66de2c0a517.jar D:\Apps\MyFirstApp\build\intermediates\pre-d
exed\release\classes-6db334e7e56144abedfc86a1f4cdaf9842ca96f5.jar D:\Apps\MyFirstApp\build\intermediates\pr
e-dexed\release\httpclient-4.0-3c5cffe43da2ed6c48e17297a1c656a2533d2a50.jar D:\Apps\MyFirstApp\build\interm
ediates\pre-dexed\release\internal_impl-23.0.0-7d9a1537c52a1742693a6bbc8d0e1f273a6ad4c1.jar D:\Apps\MyFirst
App\build\intermediates\pre-dexed\release\jakarta-httpcore-4.0-alpha1-414bbcb391593a688f707387341625aad1393
9e8.jar D:\Apps\MyFirstApp\build\intermediates\pre-dexed\release\picasso-2.3.4-be898bdc22ce95710e44780aba49
5a036a29e6f1.jar D:\Apps\MyFirstApp\build\intermediates\pre-dexed\release\support-annotations-23.0.0-3f77e9
3e5ed0a0d7276beffe8309c2818d2dc483.jar
Error Code:
2
Output:

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/v7/app/ActionBar$LayoutPar
ams;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)



* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log outp
ut.

BUILD FAILED

Total time: 22.09 secs
Содержание Gradle:
[syntax=java]
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.11.+'
}
}
apply plugin: 'android'

android {
compileSdkVersion 'android-23'
buildToolsVersion '23.0.0'

buildTypes {
release {
runProguard false
proguardFile getDefaultProguardFile('proguard-android.txt')
}
}
defaultConfig {
//applicationId "ru.vkshaasdfblon.pars.myapplication"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.0'
}
}
[/syntax]


Кто разбирается, подскажите пожалуйста что он от меня хочет?

За ранее большое спасибо!

Ответить