barx Well-Known Member Licensed User Longtime User Dec 27, 2017 #1 Hi guys and girls. Anyone remember me? lol I have been working through @corwin42 brilliant tutorial on creating library in Android Studio (no need for SLC related answers). Had a few issues getting the paths set and I think I'm there. I get the output files so that is a start. When I load the lib into b4a it appears ok, docs all seem to work etc. When I try to compile a project using the lib I get and error. Compiling generated Java code. Error javac 1.8.0_112 src\barxdroid\flingtest\main.java:334: error: package uk.co.barxdroid.notificationbuilder does not exist uk.co.barxdroid.notificationbuilder.NotificationBuilder _n = null; Click to expand... (ignore the 'flingtest' part, it was just a simple project i already setup to try it on.) In my java files I have the package set as I always did. Any ideas why it isn't being detected?
Hi guys and girls. Anyone remember me? lol I have been working through @corwin42 brilliant tutorial on creating library in Android Studio (no need for SLC related answers). Had a few issues getting the paths set and I think I'm there. I get the output files so that is a start. When I load the lib into b4a it appears ok, docs all seem to work etc. When I try to compile a project using the lib I get and error. Compiling generated Java code. Error javac 1.8.0_112 src\barxdroid\flingtest\main.java:334: error: package uk.co.barxdroid.notificationbuilder does not exist uk.co.barxdroid.notificationbuilder.NotificationBuilder _n = null; Click to expand... (ignore the 'flingtest' part, it was just a simple project i already setup to try it on.) In my java files I have the package set as I always did. Any ideas why it isn't being detected?
DonManfred Expert Licensed User Longtime User Dec 27, 2017 #2 barx said: Anyone remember me? lol Click to expand... Yes Welcome back barx said: Any ideas why it isn't being detected? Click to expand... If you followed the Tutorial by @corwin42 then you finally have a "empty jar", a XML and a AAR file, right? Did you added the added the Code: Copy @DependsOn(values={"NotificationBuilder.aar"}) annotation to your Library code? Or add a Code: Copy #AdditionalJar: NotificationBuilder.aar to your B4A Code. Last note: you copied the NotificationBuilder.aar to your additional library folders, right?
barx said: Anyone remember me? lol Click to expand... Yes Welcome back barx said: Any ideas why it isn't being detected? Click to expand... If you followed the Tutorial by @corwin42 then you finally have a "empty jar", a XML and a AAR file, right? Did you added the added the Code: Copy @DependsOn(values={"NotificationBuilder.aar"}) annotation to your Library code? Or add a Code: Copy #AdditionalJar: NotificationBuilder.aar to your B4A Code. Last note: you copied the NotificationBuilder.aar to your additional library folders, right?
barx Well-Known Member Licensed User Longtime User Dec 27, 2017 #3 DonManfred said: Yes Welcome back Click to expand... Thanks DonManfred said: If you followed the Tutorial by @corwin42 then you finally have a "empty jar", a XML and a AAR file, right? Click to expand... Correct DonManfred said: Did you added the added the Code: Copy @DependsOn(values={"NotificationBuilder.aar"}) annotation to your Library code? Or add a Code: Copy #AdditionalJar: NotificationBuilder.aar to your B4A Code. Click to expand... Cor-wrong, going to try that now DonManfred said: Last note: you copied the NotificationBuilder.aar to your additional library folders, right? Click to expand... Correct Will report back shortly
DonManfred said: Yes Welcome back Click to expand... Thanks DonManfred said: If you followed the Tutorial by @corwin42 then you finally have a "empty jar", a XML and a AAR file, right? Click to expand... Correct DonManfred said: Did you added the added the Code: Copy @DependsOn(values={"NotificationBuilder.aar"}) annotation to your Library code? Or add a Code: Copy #AdditionalJar: NotificationBuilder.aar to your B4A Code. Click to expand... Cor-wrong, going to try that now DonManfred said: Last note: you copied the NotificationBuilder.aar to your additional library folders, right? Click to expand... Correct Will report back shortly
barx Well-Known Member Licensed User Longtime User Dec 27, 2017 #4 @DonManfred I think that has done the trick, thanks buddy. It compiles an app that uses the AS created lib and seems to work anyways Now to figure how to break it (like the recent posted issues) and then to update / fix it. I've been out of the game soooo long it's like starting new again.
@DonManfred I think that has done the trick, thanks buddy. It compiles an app that uses the AS created lib and seems to work anyways Now to figure how to break it (like the recent posted issues) and then to update / fix it. I've been out of the game soooo long it's like starting new again.