Android Question [SOLVED]AndroidManifest.xml:26: error: <uses-library> is missing attribute 'android:name'.

Myr0n

Active Member
Licensed User
Longtime User
Hello everybody
I just download the B4A 10.70 and I compiled my project that is working with previous version of b4a, I am having the next issues
here is my manifest
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="29"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:resizeableActivity="true"
    android:supportsPictureInPicture="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetActivityAttribute(Main, android:resizeableActivity, "true")
'End of default text.
AddPermission("android.permission.WRITE_EXTERNAL_STORAGE")
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
        <item name="colorPrimary">#FF5677FC</item> <!-- action bar -->
        <item name="colorPrimaryDark">#FF455EDE</item> <!-- status bar -->
        <item name="colorAccent">#FF40C4FF</item> <!-- checkboxes,, switches,, etc. -->
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="windowActionModeOverlay">true</item>
    </style>
</resources>
)

AddActivityText(main, <intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" /></intent-filter>)

AddApplicationText( <uses-library android:required="true" name="com.sec.android.app.multiwindow"> </uses-library>
    <meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
    <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="632.0dip" />
    <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:value="598.0dip" />
    <meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W" android:value="120.0dip" />
    <meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H" android:value="80.0dip" />
    <meta-data android:name="com.samsung.android.sdk.multiwindow.multiinstance.enable" android:value="true" />
    )

here is the error:
B4X:
B4A Version: 10.70
Parsing code.    (0.43s)
    Java Version: 11
Building folders structure.    (0.72s)
Running custom action.    (10.41s)
Compiling code.    (0.56s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.03s)
    (AndroidX SDK)
Compiling resources    (0.70s)
Linking resources    Error
AndroidManifest.xml:26: error: <uses-library> is missing attribute 'android:name'.

I deleted the folder where I had install the "Android SDK Command line tools" and I reinstall again everything and the problem persist.
Also I deleted the java folder and I downloaded the java file and I extracted in the c:\Java folder.

Somebody could help me please.

Thank you
 

Myr0n

Active Member
Licensed User
Longtime User
Thank you so much @Erel
About the Java was part of the troubleshooting before asking for help.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…