Android Question When compiling the B4A software, it does not pass, and the following error occurs:

goomoo

Member
Licensed User
Longtime User
I reinstalled a computer and B4A shows when compiling "File > Create New > Default" :

B4A Version: 10.90
Parsing code. (0.01s)
Java Version: 11
Building folders structure. (0.19s)
Compiling code. (0.05s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
(Android Support Library)
Compiling resources (0.73s)
Linking resources (1.68s)
Compiling debugger engine code. (0.00s)
Compiling generated Java code. (0.01s)
Convert byte code - optimized dex. (4.39s)
Copying libraries resources (0.39s)
ZipAlign file. (0.23s)
Signing package file (debug key). Error
Unsupported option: --v4-signing-enabled. See --help for supported options.

20210626164508.png



Displayed when compiling B4XPages:

B4A Version: 10.90
Parsing code. (0.23s)
Java Version: 11
Building folders structure. (0.33s)
Running custom action. (1.07s)
Compiling code. (0.29s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
(Android Support Library)
Compiling resources (0.68s)
Linking resources Error
aapt2.exe W 06-26 12:25:22 5188 4240 ApkAssets.cpp:138] resources.arsc in APK 'C:\Program Files (x86)\Android\android-sdk\platforms\android-29\android.jar' is compressed.

AndroidManifest.xml:20: error: 'porbtrait' is incompatible with attribute screenOrientation (attr) enum [behind=3, fullSensor=10, fullUser=13, landscape=0, locked=14, nosensor=5, portrait=1, reverseLandscape=8, reversePortrait=9, sensor=4, sensorLandscape=6, sensorPortrait=7, unspecified=4294967295, user=2, userLandscape=11, userPortrait=12].
error: failed processing manifest.

20210626164612.png


How do I deal with it?

20210626164601.png
 

DonManfred

Expert
Licensed User
Longtime User
Delete the current SDK.

Install a complete fresh one following the Installationinstructions carefully.
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
You seem to have installed the SDK in Program Files (x86), and also it is not the latest one - this is a very bad idea that can cause problems as that is a specially protected folder on Windows. As already noted by DonManfred install a new SDK following the instructions in his link exactly and make sure you are running the latest B4A - v10.90.
 
Upvote 0
Top