-
Notifications
You must be signed in to change notification settings - Fork 149
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
[huawei_ads] Compile Error after Upgrade to Gradle plugin 8.3 #393
Comments
We are facing the same issue. Tried different workarounds, nothing helped |
same issue |
this happened to ALL FLUTTER PACKAGES that haven't set namespace to their android {
....
if (project.android.hasProperty("namespace")) {
namespace("{app_id}")
}
....
} |
this is not working |
@Jasco07122021 are you sure? how you configure it or just let me know which package do you use. |
Any updates on this? It's been almost two months already, and we're unable to make Huawei releases of all our projects |
Usage example until merge # From 6.12.0+303 https://github.com/HMS-Core/hms-flutter-plugin/pull/397
huawei_location:
git:
url: https://github.com/HMS-Core/hms-flutter-plugin
path: flutter-hms-location
ref: 9d47f5aaa11d4474b37b83e42d073f05ebaa2e24 |
I did some deeper investigation and found out the reason and workaround. Reason: IPPSChannelInfoService uses aidl and since gradle 8 aidl is disabled by default, it should be enabled on the project/module level Workaround for developers: add this to your project-level build.gradle file, section allprojects. After this I was able to build my app with Huawei libraries allprojects {
...
subprojects {
afterEvaluate { project ->
if (project.hasProperty('android')) {
project.android {
if (namespace == null) {
namespace project.group
}
}
if (project.group == 'com.huawei.hms.flutter.ads') {
project.android.buildFeatures.aidl true
}
}
}
}
} By the way, it also fixes another problem of huawei libraries - lack of namespaces Suggestion to Huawei: add namespaces and aidl support (where needed) to your libraries (app-level build.gradle, android section)
|
@qwertyway This workaround works on my end, thank you! |
Description
I am trying to migrate my project to using Flutter engine v3.24, which bump Android gradle plugin version to 8.X.
Initially getting compilation error, which I believe that it's due to HMS plugins haven't supported gradle 8.X yet.
Then i tried to added following lines
build.gradle
to resolve the error,But I ended up with getting following error which complain that
com.huawei.android.hms.ppskit.IPPSChannelInfoService
does not existLogs
Post logs here or paste them to Ghostbin and insert the link here.
Environment
The text was updated successfully, but these errors were encountered: