Android Question [Solved] Maven artifact not found: com.android.support/...

rtek1000

Active Member
Licensed User
(P.S.: See post #14)

Even though updating the SDK, the B4A is still blocked:

Maven artifact not found: com.android.support/support-v4

I am using version 7.30.

From now on can I no longer compile app that show this warning?
 
Last edited:

rtek1000

Active Member
Licensed User
Thank you, but it did not work.

I downloaded the Java 8 and the sdk-tools-windows-3859397 SDK again

I installed the B4A again

The folder has been created:
\sdk-tools-windows-3859397\extras\b4a_remote\android

And the "Maven artifact not found: com.android.support/support-v4" error already occurs
simply when creating a new project with the following statement:

B4X:
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
    Public rp As RuntimePermissions
End Sub
Just select the library RuntimePermissions V1.10 (original)

I do not know if this is a B4A bug, because until then I had not experienced anything with this RuntimePermissions, but if it is already original with version 1.10, something is strange
 

rtek1000

Active Member
Licensed User
It's very strange because the error does not occur with the current Trial version of the B4A

I can only think it's a bug
 

Erel

Administrator
Staff member
Licensed User
You cannot use B4A Sdk Manager with B4A v7.30. At least not the latest version of it. You need to use the old Android SDK Manager.
 

rtek1000

Active Member
Licensed User
Thanks, but I was already using this version of SDK,

However, in this SDK 24.1.1 there is no package with reference "Maven"

I found a reference only in Portuguese, when the site is in English the information is different.
https://developer.android.com/studio/intro/update (Brasilian Portuguese)

Translated from Brazilian Portuguese:
Android Support Repository
Recommended. Includes the local Maven repository for support libraries, which offer an expanded set of APIs compatible with most versions of Android. The repository is required for products like Android Wear, Android TV, and Google Cast. For more information, read Support Library.

Google Repository
Recommended. Includes the local Maven repository for Google libraries, which offer a variety of application features and services, including Firebase, Google Maps, and game leader achievements and leaderboards, among many others.
maven sdk 24.1.1.png sdk 24.1.1.png

I'm downloading the packages,
I'll comment later on what happened,

Thank you.
 

rtek1000

Active Member
Licensed User
Do the new licensed B4A installers show notification about dependencies, such as Java version, SDK version etc?
 

rtek1000

Active Member
Licensed User
Works!

Problem solved, No more "Maven artifact not found: com.android.support/support-v4":

Android Support Repository
+
Google Repository


Thank you!

Note: It would be nice if the B4A installer reports the version of the dependencies.
 

Reinald Assheuer

Member
Licensed User
Hi, I've installed both repositories but the compiler has no access to path "c:\program files (x86)\android\android-sdk\tools\..\extras\android\m2repository\com\android\support\support-v4\25.3.1\unpacked-support-v4-25.3.1".

Thanks for help.
Reinald
 

Reinald Assheuer

Member
Licensed User
I found out. From now on I have to run b4a.exe with administrator rights. Although all other stuff of Android SDK was installed with admin rights I never hat to start b4a with admin rights before. I don't understand Google.
Best regards Reinald
 

Reinald Assheuer

Member
Licensed User
Oh, I thought "such as C:\Android" was an option. Perhaps it's better to add something like "Don't install in ... ".
Thanks for your hint. I will delete the old installation of SDK an re-install it.
Best regards.
 

rtek1000

Active Member
Licensed User
If anyone has the error: Maven artifact not found: com.android.support/support-core-utils

And this error will stop happening when commenting:
B4X:
#AdditionalJar: com.android.support:support-core-utils
Ref.:
ExternalStorage - Access SD cards and USB sticks

This tip of installing the 'Android Support Repository' can also cater for this error.

(I tried to install using the current Android Studio in the SDK part, but these options are not available there)


Marven_error.png
 

Erel

Administrator
Staff member
Licensed User
Another solution is to use a newer version of B4A and install the recommended items with B4A Sdk Manager.
 
Top