input-samples
input-samples copied to clipboard
AutofillFramework sample needs update to support Flamingo and later studio versions
Steps
- Open
AutoFillFramework
sample - Click on link
upgrade gradle wrapper to 7.2 and re-import project
Actual
- When re-import happens project suck at
re-download dependencies
error page and clicking on it will not change anything. - Close and re-opening project will also not work
Unable to find method ''org.gradle.api.file.DirectoryProperty org.gradle.api.file.ProjectLayout.directoryProperty(org.gradle.api.provider.Provider)''
'org.gradle.api.file.DirectoryProperty org.gradle.api.file.ProjectLayout.directoryProperty(org.gradle.api.provider.Provider)'
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Workaround
- Open Application build.gradle and update the AGP to
classpath 'com.android.tools.build:gradle:8.0.0-rc01'
and gradle wrapper properties distribution url todistributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
- Add the
mavenCentral()
repo in the Application build.gradle - Add package namespace in the build.gradle for
Application
andafservice
- Gradle Sync > Sync will be successful and able to deploy