Open shalva97 opened 1 year ago
Unable to build. I was getting the above error message posted by @shalva97
Ccopied and paste the gradle.properties file from start project to end project. Now tried to build once again. Still failed.
failed This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times. unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> :app:clean :app:preBuild :app:preDebugBuild :app:compileDebugAidl :app:compileDebugRenderscript :app:dataBindingMergeDependencyArtifactsDebug :app:dataBindingMergeGenClassesDebug :app:generateDebugResValues :app:generateDebugResources :app:mergeDebugResources :app:generateDebugBuildConfig :app:checkDebugAarMetadata :app:createDebugCompatibleScreenManifests :app:extractDeepLinksDebug :app:processDebugMainManifest :app:dataBindingGenBaseClassesDebug :app:processDebugManifest :app:processDebugManifestForPackage :app:javaPreCompileDebug :app:mergeDebugNativeDebugMetadata :app:mergeDebugShaders :app:compileDebugShaders :app:generateDebugAssets :app:mergeDebugAssets :app:compressDebugAssets :app:processDebugJavaRes :app:checkDebugDuplicateClasses :app:desugarDebugFileDependencies :app:mergeDebugJniLibFolders :app:mergeExtDexDebug :app:mergeDebugNativeLibs :app:stripDebugDebugSymbols :app:validateSigningDebug :app:writeDebugAppMetadata :app:writeDebugSigningConfigVersions :app:processDebugResources :app:kaptGenerateStubsDebugKotlin :app:kaptDebugKotlin RepoDao.java Not sure how to handle query method's return type (java.lang.Object). DELETE query methods must either return void or int (the number of deleted rows). Query method parameters should either be a type that can be converted into a database column or a List / Array that contains such type. You can consider adding a Type Adapter for this. Unused parameter: continuation Type of the parameter must be a class annotated with @Entity or a collection/array of it. Not sure how to handle insert method's return type. RemoteKeysDao.java java.lang.reflect.InvocationTargetException (no error message)
I have encountered the same issue and the following PR helps.
See working version here https://github.com/matale/android_paging_advanced_working_end
Switched to the
advanced/end
sample but the build fails with:I did as it says to add
android.useAndroidX=true
, but now it fails with: