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
Description
I've created a new empty Flutter app with version (3.24.5) and I'm trying to add the "com.huawei.agconnect:agcp" plugin to use Huawei Messaging. When I try to run/build for android I get the following error:
An exception occurred applying plugin request [id: 'com.huawei.agconnect']
> Failed to apply plugin 'com.huawei.agconnect'.
> com.android.tools.build:gradle is no set in the build.gradle file
I've tried changing the Gradle Version and Kotlin version but all attempts have resulted in the same error.
Expected behavior
I expect the project to build without errors
Current behavior
An exception occurred applying plugin request [id: 'com.huawei.agconnect']
> Failed to apply plugin 'com.huawei.agconnect'.
> com.android.tools.build:gradle is no set in the build.gradle file
Description
I've created a new empty Flutter app with version (3.24.5) and I'm trying to add the "com.huawei.agconnect:agcp" plugin to use Huawei Messaging. When I try to run/build for android I get the following error:
I've tried changing the Gradle Version and Kotlin version but all attempts have resulted in the same error.
Here is the Sample Flutter app to test and replicate the issue:
https://github.com/sswedan/Empty_Flutter
Expected behavior
I expect the project to build without errors
Current behavior
Screenshots
Logs
flutter build apk
FAILURE: Build failed with an exception.
Where:
Build file 'empty_flutter\android\app\build.gradle' line: 7
What went wrong:
An exception occurred applying plugin request [id: 'com.huawei.agconnect']
Environment
The text was updated successfully, but these errors were encountered: