Android Question Problem with com.android.support/support-v4

Hello. Please help.
When starting the project "MyLocation" ("Background location tracking") from Mr. Erel, a message appears: "Maven artifact not found: com.android.support/support-v4".
It seems that I did everything strictly according to the instructions:
1. Installed B4A, version 10.2.
2. Specified, according to the instructions https://www.b4x.com/b4a.html#installation, all the paths in the Paths Configuration.
3. Installed all recommended libraries in Sdk Manager. I also installed com.android.support:support-v4 (Goggle Maven) version 28.0.0.
4. Created a "gradle.properties" properties file in the root directory of the "MyLocation" project. I wrote the lines into it:
android.useAndroidX = true
android.enableJetifier = true
5. Restarting B4A.
The message "Maven artifact not found: com.android.support/support-v4" appears again.
What have I not done yet or have done wrong?
Thanks in advance,
Andrey.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Created a "gradle.properties" properties file in the root directory of the "MyLocation" project. I wrote the lines into it:
????????????????????????
Where does it come from?

Just follow the installation instructions and everything will work: https://www.b4x.com/b4a.html
No need to do anything special.
 
Upvote 0
????????????????????????
Where does it come from?

Just follow the installation instructions and everything will work: https://www.b4x.com/b4a.html
No need to do anything special.
Hello Mr. Erel.
You are absolutely right: I needed to be more careful.
The fact is that I also have Android Studio installed and I specified the path C: \ Users \ ... \ AppData \ Local \ Android \ Sdk \ platforms \ android-29 for android.jar instead of the correct one C: \ Android \ platforms \ android-30 \.
As for gradle.properties, the point is as follows.
When (as a result of the above error) the project "MyLocation" did not start, I, after studying the article https://developer.android.com/jetpack,
mistakenly thought the com.android.support/support-v4 artifact (which my b4a couldn't find) is part of the AndroidX library.
And there the gradle.properties file was already required.
When I did everything strictly according to the instructions, "MyLocation" started working.
I beg your pardon for the time you spent, I'm just starting my journey to Android (although I wrote a lot in Visual Basic 6.0 before).
Once again, very grateful for the answer.
Yours sincerely
Andrey from Kazakstan.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…