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

Unable to compile afservice #63

Open
fadookie opened this issue Aug 29, 2024 · 0 comments
Open

Unable to compile afservice #63

fadookie opened this issue Aug 29, 2024 · 0 comments

Comments

@fadookie
Copy link

fadookie commented Aug 29, 2024

These sample projects are using an ancient version of Gradle and AGP. To get them to build locally using my Oracle jdk-17.0.5 I had to upgrade Gradle to 7.3.3 and AGP to com.android.tools.build:gradle:7.2.0. I am then able to build Application target from Android studio, but when I try to build afservice I get the following errors which all say Not sure how to convert a Cursor to this method's return type (absolute paths have been redacted):

<REDACTED>/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:46: error: Not sure how to convert a Cursor to this method's return type
    List<DatasetWithFilledAutofillFields> getDatasets(List<String> allAutofillHints);
                                          ^
<REDACTED>/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:50: error: Not sure how to convert a Cursor to this method's return type
    List<DatasetWithFilledAutofillFields> getAllDatasets();
                                          ^
<REDACTED>/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:65: error: Not sure how to convert a Cursor to this method's return type
    List<DatasetWithFilledAutofillFields> getDatasetsWithName(
                                          ^
<REDACTED>/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:77: error: Not sure how to convert a Cursor to this method's return type
    List<FieldTypeWithHeuristics> getFieldTypesWithHints();
                                  ^
<REDACTED>/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:89: error: Not sure how to convert a Cursor to this method's return type
    List<FieldTypeWithHeuristics> getFieldTypesForAutofillHints(List<String> autofillHints);
                                  ^
<REDACTED>/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:94: error: Not sure how to convert a Cursor to this method's return type
    DatasetWithFilledAutofillFields getAutofillDatasetWithId(String datasetId);
                                    ^
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

1 participant