-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to update project to latest android studio : Gradle DSL method not found: 'deleteAllActions() #54
Comments
Hi Vivek, It's a Gradle configuration error, and not Fire App Builder error. Please see the following thread discussing that issue: #14 |
Hi, |
Thanks for the update Vivek, As far as I know it might be an issue with either the different version of build tools or configuration. I am glad you are able to build your app now. Thanks! |
I can confirm that after applying this patch to update gradle: diff --git a/Application/artifacts.gradle b/Application/artifacts.gradle
index 2831c22..0c7a934 100644
--- a/Application/artifacts.gradle
+++ b/Application/artifacts.gradle
@@ -8,7 +8,7 @@ android.applicationVariants.all { variant ->
appName = parent.name
}
- variant.outputs.each { output ->
+ variant.outputs.all { output ->
;
def newApkName
if (output.zipAlign) {
@@ -16,6 +16,6 @@ android.applicationVariants.all { variant ->
} else {
newApkName = "${appName}-${output.baseName}-${variant.versionName}-unaligned.apk"
}
- output.outputFile = new File(output.outputFile.parent, newApkName)
+ output.outputFileName = new File(output.outputFileName, newApkName)
}
}
diff --git a/Application/build.gradle b/Application/build.gradle
index 4ad3204..1704f4a 100644
--- a/Application/build.gradle
+++ b/Application/build.gradle
@@ -18,9 +18,10 @@ buildscript {
repositories {
mavenCentral()
jcenter()
+ google()
}
dependencies {
- classpath 'com.android.tools.build:gradle:2.2.3'
+ classpath 'com.android.tools.build:gradle:4.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
diff --git a/Application/gradle/wrapper/gradle-wrapper.properties b/Application/gradle/wrapper/gradle-wrapper.properties
index 9f0b201..2a1c497 100644
--- a/Application/gradle/wrapper/gradle-wrapper.properties
+++ b/Application/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Mon Sep 21 14:11:34 PDT 2015
+#Thu May 28 14:37:40 PDT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip the following error is produced by Android Studio:
|
If you are building with Java 8, and also using RetroLambda in your project, then please remove retrolambda in gradle.properties file, because Java 8 supports lambda expressions. |
After removing retrolambda:
|
After removing findbugs:
Seems like a never ending list of warnings and errors. It is not reasonable to expect every user to figure this out themselves just because they are using a recent version of Android Studio. It seems clear this project had been abandoned by Amazon, and at the very least the README should be updated to state that no updates are happening and it only works with Android Studio 2.x |
Some things to check: |
I am giving up but if someone else wants to try: master...tmm1:build-fixes |
When i updated my fireApp builder project to latest android studio getting errors :
`FAILURE: Build failed with an exception.
A problem occurred configuring project ':ContentBrowser'.
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**
/***/
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'
}
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'
}`
and Application level build.gradle
`ext {
var = '3.5.0'
} /**
*/
// 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'
}
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.
The text was updated successfully, but these errors were encountered: