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
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);
^
The text was updated successfully, but these errors were encountered:
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 buildApplication
target from Android studio, but when I try to buildafservice
I get the following errors which all sayNot sure how to convert a Cursor to this method's return type
(absolute paths have been redacted):The text was updated successfully, but these errors were encountered: