If I understand your problem correctly, and you followed the steps described in the link that you shared by adding this to your mainmodule build.gradle , complete the following task:
flatDir { dirs "../submodule/libs" }
You basically have a problem that you fixed in your submodule , since mainmodule trying to resolve the transitive (abc.aar) submodule .
Recommended Method:
While the answer above should fix your problem, Android Studio supports the best way to do this. Import the local aar file using the File> New> New module> Import .JAR / .AAR Package option in Android Studio v1.3 +. Then you can depend on this aar-module submodule as follows:
dependencies { compile project(':aar-module') }
source share