android-studio-3.0aws-amplifyaws-amplify-sdk-android

error: cannot find symbol com: amplifyframework.util.Immutable


I am attaching to AWS Amplify and using this link https://aws-amplify.github.io/docs/android/start

But after adding all dependencies i am getting below error:

14:12:02.093 [ERROR] [system.err] /Users/kejriwal/AndroidStudioProjects/KaranKavach/app/src/main/java/com/amplifyframework/datastore/generated/model/AmplifyModelProvider.java:3: error: cannot find symbol
14:12:02.093 [ERROR] [system.err] import com.amplifyframework.util.Immutable;
14:12:02.093 [ERROR] [system.err]                                 ^
14:12:02.093 [ERROR] [system.err]   symbol:   class Immutable
14:12:02.093 [ERROR] [system.err]   location: package com.amplifyframework.util

I have tried any links like https://github.com/immutables/immutables/issues/141 But none helped, please provide suggestion.


Solution

  • I don't know what kind of shi* it was, it wasted my 3 days. But now issue is resolved.(I tried cleaning project, even it didn't work.)

    I deleted generated file AmplifyModelProvider.java, and rebuild the project and issue got resolved.