I created two sample project. Now i want to import one project into another second project. The process of importing project i followed is like-
new ->module->Import Gradle Project.
Then added module dependency
implementation project(':secondapp');
But i am getting error like-
Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :secondapp
Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :secondapp
Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve project :secondapp
Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve project :secondapp
So please tell me what's solution. I am using Android studio 3.0.
My actual scenario is like i have two projects and i want to merge both project into third empty project so that i don't have to manage 2 application and according to condition i can launch any one Activity
of both projects. for example-
if(firstProject){
startActivity(new Intent(thirdprojectActivty.this,firstprojectlaunchactivity.class));
}else{
startActivity(new Intent(thirdprojectActivty.this,secondprojectlaunchactivity.class));
}
So tell me this scenario possible by importing project as module or there is any other solution for this scenario?