Android Question Maven artifact not found

AndOrNot

Well-Known Member
Licensed User
I got this error after update b4a to beta v6.. any help?
B4X:
Maven artifact not found: C/\Users\vulca\Desktop\Programmazione\Prove B4a\socialapi\socialapi\googleplus\sdk\gplussdk
 

sea121

Member
Licensed User
it is the same for me ...

Compiling layouts code. (0.00s)
Generating R file. Error
Maven artifact not found: com.android.support/support-v4
 

Erel

Administrator
Staff member
Licensed User
Have you added any jar with #AdditionalJar and an absolute path?
 

AndOrNot

Well-Known Member
Licensed User
https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/
Install the needed Libs in android sdk.

Open Android SDK Manager and install the latest versions of:
- Android Support Repository
- Android Support Library
- Google Play Services
- Google Repository

I guess this will fix your issues, @AndOrNot , @sea121
Thanks Don, i will try
Edit: I have already install all

Have you added any jar with #AdditionalJar and an absolute path?
Yes, i added this:

'Theme Resources
#AdditionalRes: ..\resource
#AdditionalRes: C:\Program Files (x86)\Anywhere Software\Basic4android\Libraries\b4a_appcompat, de.amberhome.objects.appcompat
#AdditionalRes: D:\Android\extras\android\support\v7\appcompat\res, android.support.v7.appcompat
#AdditionalRes: C:\Program Files (x86)\Anywhere Software\Basic4android\Libraries\b4a_floatingactionbutton, de.amberhome.objects.floatingactionbutton
#AdditionalRes: C:\Users\vulca\Desktop\Programmazione\Prove B4a\jStein Slide Menu\SlidingMenu-master\library\res, com.jeremyfeinstein.slidingmenu.lib

#Extends: android.support.v7.app.ActionBarActivity
#AdditionalJar: picasso-2.5.2

#AdditionalRes: C:\Users\vulca\Desktop\Programmazione\Prove B4a\socialapi\socialapi\googleplus\sdk\res, com.google.android.gms
#AdditionalJar: C:\Users\vulca\Desktop\Programmazione\Prove B4a\socialapi\socialapi\googleplus\sdk\gplussdk.jar
 

AndOrNot

Well-Known Member
Licensed User
This is the problem. You need to copy the jar file to the additional libraries folder and reference it with #AdditionalJar: gplussdk
Tried and it works, but now i get this error:

B4A version: 6.00 BETA #1
Parsing code. (0.08s)
Compiling code. (0.24s)
Compiling layouts code. (0.02s)
Generating R file. (0.85s)
Compiling generated Java code. (3.10s)
Convert byte code - optimized dex. (10.71s)
Packaging files. Error
 

AndOrNot

Well-Known Member
Licensed User
Try to clean the project with Ctrl + P.

If it doesn't help then you need to enable the IDE logs and post the logs: https://www.b4x.com/android/forum/threads/intermittent-error-message.9047/#post-50478
Sorry, i did not understand what i should do in 2nd line:
2. Run Basic4android with a shortcut or from the command line and add the argument: -log
EDIT: ok, i understood :D
This is error:

B4A version: 6.00 BETA #1
.Net version: 4.0.30319.42000
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
Gui: 1015
*** no reuse ***
*** no reuse ***
Gui: 951
Gui: 79
Gui: 364
Gui: 169
Gui: 94
Gui: 57
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
ExitCode: 1
Output:
jarsigner: unable to open jar file: bin\temp.ap_

Error:

jarsigner: unable to open jar file: bin\temp.ap_

ManagerSpecialLibraries: building jar - C:\Users\vulca\Desktop\Programmazione\Prove B4a\Game Tracker\Version 2.5\v2.5b4\Objects\bin\extra\opt.jar
Gui: 431
Compilation task: 207.5366
Compilation task: 451.5256
Gui: 95
ManagerSpecialLibraries: building jar - C:\Users\vulca\Desktop\Programmazione\Prove B4a\Game Tracker\Version 2.5\v2.5b4\Objects\bin\extra\stan.jar
build jar file: 363
optimized dexer arguments do not match.
OptimizedDexer exitCode=-1
dontWait=True
ManagerSpecialLibraries: building jar - C:\Users\vulca\Desktop\Programmazione\Prove B4a\Game Tracker\Version 2.5\v2.5b4\Objects\bin\extra\opt.jar
Compilation task: 20784.1091
Gui: 81
OptimizedDexer exitCode=-1
dontWait=False
Gui: 208
 

Erel

Administrator
Staff member
Licensed User
There is no error in the logs.

Do you get this error with all your projects?
 

Erel

Administrator
Staff member
Licensed User
Make sure that Android SDK manager is installed properly including the build tools. Check the path under Tools - Configure Paths.
 

AndOrNot

Well-Known Member
Licensed User
Make sure that Android SDK manager is installed properly including the build tools. Check the path under Tools - Configure Paths.
All installed. Only that is not installed is Android sdk platform-tools under preview channel, because if i install it sdk manager automatically delete sdk platform tools under "Tools"

Edit: i used antoher sdk in a different folder and now it compile. But when i try to open the app it will crash.
 
Last edited:

prajinpraveen

Member
Licensed User
Hello all, i am getting the same error
upload_2016-6-10_10-55-0.png


#AdditionalRes: ..\resource
#AdditionalRes: $AdditionalLibs$\resource\b4a_appcompat, de.amberhome.objects.appcompat
#AdditionalRes: $AndroidSDK$\extras\android\support\v7\appcompat\res, android.support.v7.appcompat
#Extends: android.support.v7.app.ActionBarActivity
'#AdditionalRes: $AndroidSDK$\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
#AdditionalRes: $AndroidSDK$\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
#AdditionalRes: $AdditionalLibs$\extra-res\identity, com.google.identitytoolkit
#ExcludeClasses: .games, .drive, .fitness, .wearable, .measurement, .cast, .nearby
#ExcludeClasses: .tagmanager, .analytics, .wallet, .plus, .vision, .gcm
#ExcludeClasses: .ads
 

prajinpraveen

Member
Licensed User
@DonManfred

Updated the following
- Android Support Repository
- Android Support Library
- Google Play Services
- Google Repository

The update has removed "libproject\google-play-services_lib\res" folders in google-play-services_lib folder and i get the following error appears

ERROR: resource directory 'F:\Projects - Development\adt\sdk\tools\..\extras\google\google_play_services\libproject\google-play-services_lib\res' does not exist

Edit: - RESOLVED

Few Lessons Learnt

when SDK is updated, it removes "libproject\google-play-services_lib\res" folder and files
so make sure that you have backed up these files. Copy either from the backup or download it if you can (i downloaded them)

After this is done, new error

java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 8487000 but found 8298000. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="@Integer/google_play_services_version" />

So you change the value accordingly in the manifest editor

Eg :
<meta-data android:name="com.google.android.gms.version" android:value="8487000" />

if there is a simpler way, please share

Appcompat issue:

Appcompat issue resolved by copying the overwriting android-support-v7-appcompat.jar in the AdditionalLibraries Folder
 
Last edited:

AndOrNot

Well-Known Member
Licensed User
@prajinpraveen please start a new thread for this.


You should check the error message in the logs.

Checked this error:
LogCat connected to: HT38DWE02386
--------- beginning of /dev/log/system--------- beginning of /dev/log/main
mainonCreate (java line: 62)
java.lang.NoSuchFieldError: android.support.v7.appcompat.R$styleable.Theme
at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:307)
at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:280)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:245)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:114)
at ed.gametracker.com.main.onCreate(main.java:62)
at android.app.Activity.performCreate(Activity.java:5066)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1102)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2288)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2368)
at android.app.ActivityThread.access$600(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1330)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5536)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1074)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:841)
at dalvik.system.NativeStart.main(Native Method)


EDIT: if i try to use a device with android 4.1.1 i didn't get this error
EDIT2: Update appcompact library as explained by corvin42 in his library and all works. Thanks all
 
Last edited:

eades

Member
Licensed User
i get the "maven artifact not found" error when i use the runtimepermissions librarie 1.01 with the latest B4A
 

eades

Member
Licensed User
have you installed the SDK-Parts as decribed in B4a 6 Rleasethread?



Google repository and android support repository
Thanks for your help, yes i did, it is very strange, if i use it in a new project, there is no error. In an existing project (gps sample) the error is fired imediatly after clicking te lib (sorry for bad English)
 
Top