Ok incase anyone else comes across this I figured it out.
If you don't already have an android source folder add one by inserting this into your .pro file
android {
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android-sources
}
Here is an example file structure:
project/android-sources
project/android-sources/settings.gradle
project/android-sources/build.gradle
project/android-sources/LibraryFolder
project/android-sources/LibraryFolder/Library.aar
project/android-sources/LibraryFolder/build.gradle
You might have to get your build.gradle file from ../build-Android/android-build/build.gradle and copy it into project/android-sources/ if it doesn't already exist.
Insert this into your build.gradle file within dependencies { }
api project(':LibraryFolder')
Insert this into your settings.gradle file at the bottom
include ':LibraryFolder'
Create the build.gradle file inside LibraryFolder and insert:
configurations.maybeCreate("default")
artifacts.add("default", file('Library.aar'))
and lastly if the library you are adding has other 3rd party dependencies you will have to add them to project/android-sources/build.gradle
For example I was adding ImagePicker and had to insert the below lines inside dependencies { } but above api project(':LibraryFolder')
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.github.bumptech.glide:glide:4.9.0'
from the library's source