Android Question Error while trying to create my first wrapper

Justcooldev

Member
Licensed User
Hi guys,

Its the first time i'm trying to create a wrapper for b4a.

I'm trying to make a wrapper for this : Github link. My project is attached.

and i have this error :
B4X:
Starting step: Compiling Java code.
javac 1.8.0_371
C:\Users\JustCoolH\Documents\Coding\Java\AndroidCameraPortrait\src\fr\JustCool\VideoCaptureActivity.java:17: error: package android.support.v4.app does not exist
import android.support.v4.app.ActivityCompat;
                             ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error


Error.
(I'm compiling with simple Library compiler )

Thanks in advance for your help...
 

Attachments

  • AndroidCameraPortrait.rar
    17.4 KB · Views: 136

DonManfred

Expert
Licensed User
Longtime User
Note that the link you posted is 7 Years old.
Seven years back other requirements were active.

android.support.v4 is deprecated for a few years now.

I wouldn´t expect the library does still work in 2023.

In fact you need to update the github-project first to match the newest SDK. And even no longer require any android.support.v4 packages.
 
Upvote 0

Justcooldev

Member
Licensed User
Thank you for your response,
I said in post #1 that it was the first time i'm doing this...
I don't know how to do that.
I just need a Library that allow me to record videos And save it with a low resolution.
This project is good for me, but the orientation is only landscape ...

If anybody have an solution that could help me, thank you very much
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Hi guys,

Its the first time i'm trying to create a wrapper for b4a.

I'm trying to make a wrapper for this : Github link. My project is attached.

and i have this error :
B4X:
Starting step: Compiling Java code.
javac 1.8.0_371
C:\Users\JustCoolH\Documents\Coding\Java\AndroidCameraPortrait\src\fr\JustCool\VideoCaptureActivity.java:17: error: package android.support.v4.app does not exist
import android.support.v4.app.ActivityCompat;
                             ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error


Error.
(I'm compiling with simple Library compiler )

Thanks in advance for your help...
You need to download android support v4 from Android SDK
 
Upvote 0
Top