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

Added support for higher Gradle versions #131

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

AppSolves
Copy link
Contributor

Changes to be committed:

modified:   android/build.gradle
modified:   android/gradle/wrapper/gradle-wrapper.properties
modified:   example/android/app/build.gradle
modified:   example/android/build.gradle
modified:   example/android/gradle/wrapper/gradle-wrapper.properties
modified:   pubspec.yaml
  • Upgraded gradle to 8.1
  • Added namespace in build.gradle
  • Updated version number to 2.2.5
  • Updated kotlin version
  • Changed comPileSdkVersion to 33

Changes to be committed:
	modified:   android/build.gradle
	modified:   android/gradle/wrapper/gradle-wrapper.properties
	modified:   example/android/app/build.gradle
	modified:   example/android/build.gradle
	modified:   example/android/gradle/wrapper/gradle-wrapper.properties
	modified:   pubspec.yaml

Upgraded gradle to 8.1
@AppSolves AppSolves changed the title On branch feature/gradle-upgrade Support for higher Gradle versions Aug 20, 2023
@AppSolves AppSolves changed the title Support for higher Gradle versions Added support for higher Gradle versions Aug 20, 2023
@milindgoel15
Copy link

Tried compiling a fork with your PR and it couldn't build. Do you know what's the problem?

build error logs
2: Task failed with an exception.
-----------
* What went wrong:
Failed to query the value of property 'buildFlowServiceProperty'.
> Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@46399b58 of type BuildFlowService.Parameters
   > A problem occurred configuring project ':add_2_calendar'.
      > Could not resolve all files for configuration ':add_2_calendar:classpath'.
         > Could not find com.android.tools.build:gradle:8.1.
           Searched in the following locations:
             - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/8.1/gradle-8.1.pom
             - https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/8.1/gradle-8.1.pom
           Required by:
               project :add_2_calendar
      > Failed to notify project evaluation listener.
2
         > Could not get unknown property 'android' for project ':add_2_calendar' of type org.gradle.api.Project.

* 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 3s
Exception: Gradle task assembleDevDebug failed with exit code 1

Fixed error "Could not find com.android.tools.build:gradle:8.3".
@AppSolves
Copy link
Contributor Author

Hello @milindgoel15, it seemed like there was an issue using the Android Gradle Plugin v8.1. The actual version number is 8.1.2. I made a new commit where I addressed the error. Try compiling the example app again, it should work now!

Copy link
Collaborator

@diegogarciar diegogarciar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is working great, thank you!

@diegogarciar diegogarciar merged commit 7fb39dd into ja2375:master Oct 13, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants