Favieri
Member
hi everyone,
I've been researching the solution for this error here on the forum but no solution has been found so far.
This started when I downloaded library printing and used it in my project, like this:
When compiling
I do not know what to do
I've been researching the solution for this error here on the forum but no solution has been found so far.
This started when I downloaded library printing and used it in my project, like this:
B4X:
Private Sub lbSensorial_Click
Dim tela As B4XView = svw.Panel
Dim pdf As PdfDocument
Dim retn As Rect
Private rp As RuntimePermissions
retn.Initialize(0, 0, 400dip, 2400dip)
pdf.Initialize
pdf.StartPage(595, 842) 'A4 size
pdf.Canvas.DrawBitmap(tela.Snapshot,Null, retn)
pdf.FinishPage
Dim out As OutputStream = File.OpenOutput( rp.GetSafeDirDefaultExternal(""), "1.pdf", False)
pdf.WriteToStream(out)
out.Close
pdf.Close
End Sub
When compiling
B4X:
B4A Version: 11.00
Parsing code. (0.03s)
Java Version: 8
Building folders structure. (0.05s)
Compiling code. (0.02s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Compiling resources (0.10s)
Linking resources (0.42s)
Compiling generated Java code. (0.02s)
Convert byte code - optimized dex. Error
Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
2 errors; aborting
I do not know what to do