I'm trying to integrate these libraries into my Android project to make a navigation controller.
When I add in these two lines to my build.gradle -
implementation 'android.arch.navigation:navigation-fragment:1.0.0-alpha01'
implementation 'android.arch.navigation:navigation-ui:1.0.0-alpha01'
It syncs ok, but in build I get this error:
ERROR: In NavArgument, unable to find attribute type.
I was able to build Google's sample project that uses the relevant libraries without problems.
My project has:
- androidSupportLibrary 27.1.1
- projectTargetVersion 27
- projectCompileSdkVersion android-P
- projectBuildToolsVersion 27.0.2
- gradleVersion 3.0.1
- gradlePlugin 4.4
I've already tried upgrading all these versions^, doing a clean build, restarting Android Studio, etc.
I also get some Java compiler errors.
Any thoughts on why this might happen?