Skip to content
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]: Package com.huawei.android.hms.ppskit does not exist #396

Open
deakjahn opened this issue Nov 2, 2024 · 2 comments
Open

Comments

@deakjahn
Copy link

deakjahn commented Nov 2, 2024

Description

When building an app with huawei_ads the following error occurs:

huawei_ads-13.4.72+300\android\src\main\java\com\huawei\hms\flutter\ads\installreferrer\PpsChannelInfoService.java:28: error: package com.huawei.android.hms.ppskit does not exist
import com.huawei.android.hms.ppskit.IPPSChannelInfoService;

(plus a few others for the same issue).

Expected behavior

Build without error. Remove reference if obsolete.

Environment

  • Platform: Flutter
  • Kit: Ads
  • Kit Version 13.4.72+300
@deakjahn
Copy link
Author

deakjahn commented Nov 2, 2024

The interface referenced seems to be in huawei_ads-13.4.72+300\android\src\main\aidl\com\huawei\android\hms\ppskit\IPPSChannelInfoService.aidl so it might be some toolchain error.

Also, removing PpsChannelInfoService.java completely makes the app buildable. I don't know the ramifications.

@Andrey-Katyushin
Copy link

Andrey-Katyushin commented Nov 20, 2024

@deakjahn I had same problem yesterday. The your last message prompted me to look at the source. After investigation =), i added a code to project gradle file in my app:

allprojects {
    subprojects {
        afterEvaluate { project ->
            if (project.group == 'com.huawei.hms.flutter.ads') {
                project.android {
                    buildFeatures {
                        aidl true
                    }
                }
            }
        }
    }
}

It enables aidl in huawei_ads package and helped me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants