You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/flutter_tools/test/general.shard/android/gradle_errors_test.dart
+50
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ void main() {
36
36
incompatibleKotlinVersionHandler,
37
37
minCompileSdkVersionHandler,
38
38
jvm11RequiredHandler,
39
+
outdatedGradleHandler,
39
40
])
40
41
);
41
42
});
@@ -877,6 +878,10 @@ Execution failed for task ':app:generateDebugFeatureTransitiveDeps'.
877
878
incompatibleKotlinVersionHandler.test('Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.'),
878
879
isTrue,
879
880
);
881
+
expect(
882
+
incompatibleKotlinVersionHandler.test("class 'kotlin.Unit' was compiled with an incompatible version of Kotlin."),
883
+
isTrue,
884
+
);
880
885
});
881
886
882
887
testUsingContext('suggestion', () async {
@@ -904,6 +909,51 @@ Execution failed for task ':app:generateDebugFeatureTransitiveDeps'.
904
909
});
905
910
});
906
911
912
+
group('Bump Gradle', () {
913
+
constString errorMessage ='''
914
+
A problem occurred evaluating project ':app'.
915
+
> Failed to apply plugin [id 'kotlin-android']
916
+
> The current Gradle version 4.10.2 is not compatible with the Kotlin Gradle plugin. Please use Gradle 6.1.1 or newer, or the previous version of the Kotlin plugin.
0 commit comments