flutter-devicelocale icon indicating copy to clipboard operation
flutter-devicelocale copied to clipboard

Working well but now throwing up errors

Open TillCity opened this issue 3 years ago • 1 comments

This plugin was working perfectly till yesterday. I did a Flutter upgrade this morning and it started up the following error

` Could not resolve all artifacts for configuration ':devicelocale:classpath'.

Could not resolve com.android.tools.build:gradle:7.4.0-alpha06. Required by: project :devicelocale > No matching variant of com.android.tools.build:gradle:7.4.0-alpha06 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally but: - Variant 'apiElements' capability com.android.tools.build:gradle:7.4.0-alpha06 declares a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8 - Variant 'javadocElements' capability com.android.tools.build:gradle:7.4.0-alpha06 declares a runtime of a component, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 8) - Doesn't say anything about its elements (required them packaged as a jar) - Variant 'runtimeElements' capability com.android.tools.build:gradle:7.4.0-alpha06 declares a runtime of a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8 - Variant 'sourcesElements' capability com.android.tools.build:gradle:7.4.0-alpha06 declares a runtime of a component, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 8) - Doesn't say anything about its elements (required them packaged as a jar) Failed to notify project evaluation listener. Could not get unknown property 'android' for project ':devicelocale' of type org.gradle.api.Project. Could not get unknown property 'android' for project ':devicelocale' 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`

I downgraded to Flutter 3.0.4 but the error refuses to go away. What's up?

TillCity avatar Jul 15 '22 12:07 TillCity

Any solution?

ambr89 avatar Feb 06 '23 11:02 ambr89