0
votes

I'm working on an android app where I tried importing a different module(another project), also tried adding the dependencies of the second module to the first module by going to project structure. But it says Gradle project sync failed and I've posted the screenshots down below.

1st module build gradle compileSdkVersion 27 defaultConfig { applicationId "com.example.*****.*****" minSdkVersion 19 targetSdkVersion 27 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }

2nd module build gradle compileSdkVersion 28 defaultConfig { applicationId "com.example.*****.*****" minSdkVersion 21 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }

Screenshots of output-1 Screenshots of output-2

Please help me out!

1
post your gradle filesourabh kaushik

1 Answers

1
votes

Did you try this?

Build > Clean Project 

then

Build> Rebuild Project