This is more a gradle/maven artifact question then a Smack related one. You don’t need to have Smack in the same directory as your Android app. You need to configure the build system of your Android app so that it consumes the artifacts of your modified Smack.
What are the changes you made anyway? There should usually be no need to make code changes to Smack.
Thank you for quick reply. It is not problem to configure project to consume the artifacts, but the problem is with using gradle install to upload artifacts to local maven repository. Any ideas how to fix the problem?
About changes - I need change check for presence priority. Our older version of app use asmack and wrong priority 1000 (now with smack 4.1 crashing).