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
Error:(7, 39) error: package com.samsung.android.sdk.shealth does not exist
Error:(9, 28) error: package anywheresoftware.b4a does not exist
Error:(10, 28) error: package anywheresoftware.b4a does not exist
Error:(11, 31) error: package anywheresoftware.b4a.BA does not exist
Error:(12, 31) error: package anywheresoftware.b4a.BA does not exist
Error:(13, 31) error: package anywheresoftware.b4a.BA does not exist
Error:(14, 31) error: package anywheresoftware.b4a.BA does not exist
Error:(15, 31) error: package anywheresoftware.b4a.BA does not exist
Error:(33, 36) error: cannot find symbol class AbsObjectWrapper
Error:(17, 2) error: cannot find symbol class ShortName
Error:(34, 10) error: cannot find symbol class BA
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
 
b4ashared and core from internal libs folder.
 
Thanks Don,
I managed to get those libs added and now I get:
D:\ANDROID\SHealthLib\src\com\samsung\android\app\lib\FilterWrapper.java
Error:(7, 39) error: package com.samsung.android.sdk.shealth does not exist
D:\ANDROID\SHealthLib\src\com\samsung\android\app\lib\HealthPermissionManagerWrapper.java
Error:(15, 39) error: package com.samsung.android.sdk.shealth does not exist
D:\ANDROID\SHealthLib\src\com\samsung\android\app\lib\PermissionKeyWrapper.java
Error:(5, 39) error: package com.samsung.android.sdk.shealth does not exist
D:\ANDROID\SHealthLib\src\com\samsung\android\app\lib\PermissionTypeWrapper.java
Error:(5, 39) error: package com.samsung.android.sdk.shealth does not exist
D:\ANDROID\SHealthLib\src\com\samsung\android\app\lib\ShealthWrapper.java
Error:(3, 39) error: package com.samsung.android.sdk.shealth does not exist
Error:(32, 54) error: cannot find symbol class Shealth
Do you know where com.samsung.android.sdk.shealth resides?
Rusty
 
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?
 
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
 
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
 
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.
 
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
 
Sorry. is there a way to move it to a new thread or should I abandon this one and start a new one?
 
Back
Top