Java Question Android Studio - anywheresoftware.b4a.AbsObjectWrapper

Rusty

Well-Known Member
Licensed User
Longtime User
I'm trying to compile some java code that uses the B4a "environment".
When I try to compile the app, it complains
Can someone point me to where this resides? I am assuming it is somewhere in the Anywhere B4a folders, but can't seem to find it.
Thanks,
Rusty
 

Rusty

Well-Known Member
Licensed User
Longtime User
Thanks Don,
I managed to get those libs added and now I get:
Do you know where com.samsung.android.sdk.shealth resides?
Rusty
 

DonManfred

Expert
Licensed User
Longtime User
it´s one of the jars i used in my health wrapper... See download of it
these jar are inside the SDK Download from Samsung Digital Health

There are 2 of them. Both needs to be applied i guess

How did you manage it to add the core for ex with Studio?
 

Rusty

Well-Known Member
Licensed User
Longtime User
It was very difficult as the IDE isn't simple...like "Add external library/jar".
In Explorer, I added a lib folder under the project; I copied the .jar files into that folder
in build.gradle I added:
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile files('libs/B4AShared.jar')
compile files('libs/core.jar')
In the terminal, I ran gradlew

I found the com.samsung.android.sdk.shealthxxx.jar in the SDK, thanks, somehow I overlooked it...
When I copied it to the lib folder, Studio saw it immediately and integrated it into the solution.
Rusty
 

Rusty

Well-Known Member
Licensed User
Longtime User
Don,
I finally have been able to generate an .aar file from your code in Android Studio.
I know I have to convert it to .jar with SLC.
Do you mind sending me your updated source with the extra/new permissions?
Thanks,
Rusty

BTW, Eclipse was a comple
 

Rusty

Well-Known Member
Licensed User
Longtime User
sorry, it isn't a word... I was trying to say Eclipse was a complete bust, I couldn't get it to compile...
I must have sent it without completing my thought.
 

Rusty

Well-Known Member
Licensed User
Longtime User
I'm trying to convert the .aar library created by Android Studio to a usable .jar file (to be included within a B4a project).
I thought the SLC would do this, but it seems to want to compile the source code.
Am I doing something wrong or using the wrong tool?
Rusty
 

Rusty

Well-Known Member
Licensed User
Longtime User
Sorry. is there a way to move it to a new thread or should I abandon this one and start a new one?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…