amzn / amzn/fire-app-builder

Unable to update project to latest android studio : Gradle DSL method not found: 'deleteAllActions()

Open
#54 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
201
Forks
255
PR merge metrics
No merged PRs in 30d

Description

When i updated my fireApp builder project to latest android studio getting errors :
`FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':ContentBrowser'.
> org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method deleteAllActions() for arguments [] on task ':ContentBrowser:extractDebugAnnotations' of type com.android.build.gradle.tasks.ExtractAnnotations.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

CONFIGURE FAILED in 30s
Gradle DSL method not found: 'deleteAllActions()'
`
**Below is contents of my app-level build.gradle**
`/**
* Copyright 2015-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
apply plugin: 'com.android.application'
//apply plugin: 'me.tatarka.retrolambda'
// Uncomment when using CrashlyticsComponent
//apply plugin: 'io.fabric'
apply from: "../artifacts.gradle"

repositories {
// Uncomment when using CrashlyticsComponent
//maven { url 'https://maven.fabric.io/public' }
//jcenter()
//google()
}

buildscript {
repositories {
jcenter()
// Uncomment when using CrashlyticsComponent
//maven { url 'https://maven.fabric.io/public' }
//google()
}
dependencies {
//classpath 'me.tatarka:gradle-retrolambda:3.2.3'
// Uncomment when using CrashlyticsComponent
//classpath 'io.fabric.tools:gradle:1.+'
}
}

android {
compileSdkVersion 26
buildToolsVersion '26.0.2'

defaultConfig {
applicationId "com.mycompany.firetv.myapp"
minSdkVersion 21
targetSdkVersion 26
versionCode 6
//versionCode 5
//versionName "1.3"
versionName "1.4"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
testCoverageEnabled = true
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

// this is for jackson
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/services/com.fasterxml.jackson.core.JsonFactory'
exclude 'META-INF/services/com.fasterxml.jackson.core.ObjectCodec'
exclude 'META-INF/rxjava.properties'
}

lintOptions {
abortOnError false
}

}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile 'junit:junit:4.12'
androidTestCompile 'org.mockito:mockito-core:1.9.5'
androidTestCompile ('com.android.support.test:rules:0.5') {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestCompile ('com.android.support.test:runner:0.5') {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'

androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.3.1'

compile project(':TVUIComponent')
compile project(':UAMP')
compile project(':AMZNMediaPlayerComponent')
compile project(':PassThroughAdsComponent')
compile project(':PassThroughLoginComponent')
compile project(':LoggerAnalyticsComponent')
}`

**and Application level build.gradle**

`ext {
var = '3.5.0'
} /**
* Copyright 2015-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
jcenter()
google()
//mavenCentral()
}
dependencies {
//classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.android.tools.build:gradle:3.5.3'


// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
jcenter()
google()
mavenCentral()
if (rootProject.hasProperty('mavenUrl')) {
maven { url rootProject.mavenUrl }
}
}
}`

**Additional info :**
My Android studio version is 3.5.3
Gradle distribution URL is :
`distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
`
it looks like we can't update this repo to latest android studio and gradle version.

Contributor guide

Open the contributing guide

Research direction

Start with the app-level and top-level build.gradle files and the Gradle distribution URL shown in the issue, then reproduce the configuration failure for :ContentBrowser:extractDebugAnnotations under Android Studio 3.5.3. Trace where deleteAllActions() is introduced and verify that the project configures and builds successfully with the supported Android and Gradle versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.