Skip to content
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

Gradle error A problem occurred configuring project ':line_awesome_icons'. #1

Closed
Panthro opened this issue Dec 24, 2018 · 6 comments
Closed

Comments

@Panthro
Copy link

Panthro commented Dec 24, 2018

Just ran a

flutter build apk --release

And got the exception:

* Error running Gradle:
ProcessException: Process "..." exited abnormally:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':line_awesome_icons'.
> Failed to notify project evaluation listener.
   > java.lang.AbstractMethodError (no error message)

* 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

BUILD FAILED in 0s
  Command: ... app:properties


Please review your Gradle project setup in the android/ folder.

No help on google, can't even understand the issue.

flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.14.2 18C54, locale en-ES)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
[!] Connected device
    ! No devices available

! Doctor found issues in 1 categories.
@Panthro
Copy link
Author

Panthro commented Dec 24, 2018

I could fix the issue with the following changes:

diff --git a/android/build.gradle b/android/build.gradle
index 830798d..b7faad8 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -1,12 +1,12 @@
 buildscript {
-    ext.kotlin_version = '1.2.30'
+    ext.kotlin_version = '1.2.71'
     repositories {
         google()
         jcenter()
     }
 
     dependencies {
-        classpath 'com.android.tools.build:gradle:3.1.2'
+        classpath 'com.android.tools.build:gradle:3.2.1'
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
     }
 }
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
index 9372d0f..bae5290 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

@Panthro
Copy link
Author

Panthro commented Dec 24, 2018

Too fast, now other errors:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:dynamicProfileRuntimeClasspath'.
   > Could not resolve project :line_awesome_icons.
     Required by:
         project :app
      > java.lang.NullPointerException (no error message)

* 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

BUILD FAILED in 26s

@Panthro
Copy link
Author

Panthro commented Dec 24, 2018

I was able to fix with this ponnamkarthik/FlutterToast#18 and this flutter/flutter#22397

@phucgaoxam
Copy link
Owner

@Panthro
I changed compileSdkVersion to 28 in the example's android build gradle and managed to fix problem.
Can you please try again with the new version 1.0.4.

@phucgaoxam
Copy link
Owner

I decided to remove the android and ios plugin's folder because this is just a widget, no need to interact with Gradle or iOS Cocapod.
Please try again with 1.0.4+1 😄
Thanks for your feedback

@Panthro
Copy link
Author

Panthro commented Jan 8, 2019

I can confirm this is no longer an issue, thanks for the support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants