I am new to the cordova plugin development stuff.
I want to write a plugin which is able to open a new android activty and showing some advertisement.
So I followed a simple tutorial here. That works very well and as expected.
Next step is to include this Android Studio Gradle project to my plugin.
My first try: Adding the gradle project to a subfolder of my cordova plugin and adding the following line to the plugin.xml file:
<framework src="libs/Broper/build.gradle" custom="true" type="gradleReference" />
also I tried:
<framework src="libs/Broper/app/build.gradle" custom="true" type="gradleReference" />
doesn't work. So I can't import the classes of that android studio project to my plugin java files.
Then a better solution (I thought so) is to add an AAR instead. But there I don't even have a clue what to do to add that AAR in my cordova plugin.
So, the question is: How do I add an android studio project (or library) to my cordova plugin the right way?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…