相关疑难解决方法(0)

任务执行失败':app:compileDebugAidl':缺少aidl

我在我的电脑上安装了Android Studio.我创建了一个新项目,但下面给出了错误.我能做什么?

Error:Execution failed for task ':app:compileDebugAidl'.
> aidl is missing
Run Code Online (Sandbox Code Playgroud)

我的Android Studio版本是1.1.0.

这是我的build.gradle档案:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
allprojects {
    repositories {
        jcenter()
    }
}
Run Code Online (Sandbox Code Playgroud)

而且:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "24.1.2"

    defaultConfig {
        applicationId "com.example.jo.cloning_a_login_screen"
        minSdkVersion 13
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes { …
Run Code Online (Sandbox Code Playgroud)

android aidl android-studio build.gradle android-gradle-plugin

67
推荐指数
5
解决办法
11万
查看次数

使用Proguard获取警告(使用外部库)

我启用了Proguard,我正在尝试构建APK,我收到了很多警告,不知道如何解决它们.

我正在使用Retrofit,Jsoup和其他库存库,我收到以下警告:

 Warning:okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
 Warning:okio.Okio: can't find referenced class java.nio.file.Files
 Warning:okio.Okio: can't find referenced class java.nio.file.Path
 Warning:okio.Okio: can't find referenced class java.nio.file.OpenOption
 Warning:okio.Okio: can't find referenced class java.nio.file.Path
 Warning:okio.Okio: can't find referenced class java.nio.file.OpenOption
 Warning:okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
 Warning:okio.Okio: can't find referenced class java.nio.file.Path
 Warning:okio.Okio: can't find referenced class java.nio.file.OpenOption
 Warning:okio.Okio: can't find referenced class java.nio.file.Path
 Warning:okio.Okio: can't find referenced class java.nio.file.OpenOption
 Warning:okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
 Warning:retrofit2.Platform$Java8: can't find referenced method 'boolean …
Run Code Online (Sandbox Code Playgroud)

android proguard

50
推荐指数
1
解决办法
2万
查看次数

Android中的transformClassesAndResourcesWithProguardForRelease'错误

嗨,我正在努力为我的项目创建发布版本.我已经通过SO/Google帮助在Progaurd上尝试了很多东西,但我仍然无法创建发布版本.

有人可以帮我这个吗?我总是遇到这个问题:

Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
> java.io.IOException: Please correct the above warnings first.
Run Code Online (Sandbox Code Playgroud)

这是完整的详细错误:http://justpaste.it/perror抱歉,我不得不把它作为一个链接,因为它是巨大的.

这是依赖项:

//compile fileTree(dir: 'libs', include: ['*.jar'])
 testCompile 'junit:junit:4.12'
 compile 'com.android.support:appcompat-v7:23.1.1'
 compile 'com.android.support:design:23.1.1'
 compile 'com.rengwuxian.materialedittext:library:2.1.4'
 compile 'com.squareup.picasso:picasso:2.5.2'
 compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
 compile 'org.apache.httpcomponents:httpcore:4.4.1'
 compile 'com.squareup.retrofit:retrofit:1.9.0'
 compile 'com.loopj.android:android-async-http:1.4.8'
 compile 'com.android.support:cardview-v7:23.1.1'
 compile 'com.android.support:recyclerview-v7:23.1.1'
 compile project(':pageIndicator')
 compile 'com.github.neopixl:PixlUI:v1.0.6'
 compile 'com.github.bumptech.glide:glide:3.6.1'
Run Code Online (Sandbox Code Playgroud)

我的progaurd文件:

# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# …
Run Code Online (Sandbox Code Playgroud)

java android proguard android-studio android-proguard

11
推荐指数
2
解决办法
2万
查看次数

Android Studio Signed APK':app:transformClassesAndResourcesWithProguardForRelease'

当我尝试在Android Studio中生成签名时,我遇到以下错误:

错误:任务':app:transformClassesAndResourcesWithProguardForRelease'的执行失败.java.io.IOException:请先纠正上面的警告.

已经做了一些研究并找到了例如:

错误:任务执行失败':android:transformClassesAndResourcesWithProguardForRelease'

我按照建议,它没有用.所以,我试着更新我buildToolsVersion23.0.2.

也没用.

它仅在我修改minifyEnabled为false 时才有效,我不想这样做.

你能给我一个曲目吗?

android apk android-studio

11
推荐指数
1
解决办法
9927
查看次数

错误:任务':app:transformClassesAndResourcesWithProguardForRelease的执行失败

我正在尝试签署我的应用程序以进行发布并且它正确构建,但我想启用Proguard我收到以下错误

Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease
Run Code Online (Sandbox Code Playgroud)

我的gradle文件

    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    lintOptions {
        disable 'InvalidPackage'
    }
    packagingOptions {
        exclude 'META-INF/services/javax.annotation.processing.Processor'
        exclude 'META-INF/DEPENDENCIES.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/dependencies.txt'
        exclude 'META-INF/LGPL2.1'
    }
}

repositories {
    mavenCentral()
    jcenter()
    maven {
        url 'https://esri.bintray.com/arcgis'
    }
}
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile project(':StickyListHeaders')
    compile files('libs/org.apache.commons.io.jar')
    compile files('libs/json-20140107.jar')
    compile project(':ParallaxEverywhere')
    compile files('libs/nineoldandroids-2.4.0.jar') …
Run Code Online (Sandbox Code Playgroud)

java android proguard

9
推荐指数
1
解决办法
3万
查看次数

应用:transformClassesAndResourcesWithProguardForRelease

Error:Execution failed for task 
':app:transformClassesAndResourcesWithProguardForRelease'.
Run Code Online (Sandbox Code Playgroud)

java.io.IOException:请先纠正上面的警告.

我尽力找到解决方案,但我没有得到,而我发现了很多问题.

有什么可以忽略这些警告,我只想生成一个安全签名的apk,因此我使用了minifyEnabled true

信息:

Warning:retrofit.client.OkClient$1: can't find superclass or interface com.squareup.okhttp.RequestBody
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl$Builder
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Request$Builder
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Call
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Response
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.ResponseBody
Warning:com.squareup.picasso.OkHttpDownloader: can't …
Run Code Online (Sandbox Code Playgroud)

android proguard gradle android-studio android-proguard

2
推荐指数
1
解决办法
2988
查看次数