nityanandagohain / in-time

A mobile app in flutter
20 stars 28 forks source link

Can't find dialogCornerRadius resource #49

Closed Kvaibhav01 closed 5 years ago

Kvaibhav01 commented 5 years ago

When I run the app (after successfully adding the Firebase JSON file inside the android > app directory, I get an error that says "Android resource linking failed cannot find dialogCornerRadius resource."

I've tried to search for the resource manually but couldn't find one. Please look into this.

nityanandagohain commented 5 years ago

clone the repository and try one again.

Kvaibhav01 commented 5 years ago

Same issue. It's not fixed.

54405f1a-c20e-4973-ad2f-077bfcfd0e14 png

plusminuschirag commented 5 years ago

@Kvaibhav01 It can be fixed by changing the compileSdkVersion to 28. Go to android/app and open your build.gradle file and change:

compileSdkVersion 27 to complieSdkVersion 28

But after this I am encountering the following error with multidexing. I think it's due to backward compatiblity issues:

multidexing error

Kvaibhav01 commented 5 years ago

@iamchiragsharma, I'll try to change the SDK version and let you know. As for the dex issue, have you tried this in your project-level build.gradle?:

dexOptions {
    javaMaxHeapSize "4g"
    preDexLibraries = false
}
plusminuschirag commented 5 years ago

I saw it too at stack overflow but it doesn't help it crashes the app while it resolves dependencies. I started from scratch again and thought maybe that is Android X issue but when I used Android Studio to refactor it the Android Studio simply said there is nothing to refactor.

Let me know if you find something.

I am attaching the result when I used:

dart dexOptions { javaMaxHeadSize "4g" preDexLibraries = false }

screenshot from 2019-03-01 13-27-57

Kvaibhav01 commented 5 years ago

I've tried both options, no luck. Having the same issue as @iamchiragsharma.

nityanandagohain commented 5 years ago

@Kvaibhav01 @iamchiragsharma I have resolved them now. Try now it should work.

Kvaibhav01 commented 5 years ago

Yes, it's solved!