After update new version error logs

okyanusefer

  • Posts: 40
Hello, i got error when i publish android game. Any can help me about that? what is my problem?

Justin

  • *
  • Posts: 4709
Code: [Select]
[dependency] Found 3 versions of android-support-v4.jar in the dependency list,
[dependency] but not all the versions are identical (check is based on SHA-1 only at this time).
[dependency] All versions of the libraries must be the same at this time.
[dependency] Versions found are:
[dependency] Path: C:\Users\PCADMIN\AppData\Roaming\Stencyl\stencylworks\games-generated\nwgame\Export\android\bin\deps\notifications\libs\android-support-v4.jar
[dependency] Length: 758727
[dependency] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
[dependency] Path: C:\Users\PCADMIN\AppData\Roaming\Stencyl\stencylworks\games-generated\nwgame\Export\android\bin\deps\google\libs\android-support-v4.jar
[dependency] Length: 758727
[dependency] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
[dependency] Path: C:\Users\PCADMIN\AppData\Roaming\Stencyl\stencylworks\games-generated\nwgame\Export\android\bin\deps\google\libs\android-support-v4\libs\android-support-v4.jar
[dependency] Length: 1481108
[dependency] SHA-1: 53df21903b11064eb25599da4a71f7efc27d5d81
BUILD FAILED
C:\Users\PCADMIN\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows\tools\ant\build.xml:577: Jar mismatch! Fix your dependencies

My first suggestion would be to try Run > Clean Project and test again, see if it changes anything.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

vvitek

  • Posts: 118
Cleaning does not help.

okyanusefer

  • Posts: 40
i tried different game, its giving same error, but this time giving [haxelib.exe] [dependency] Found 2 versions of android-support-v4.jar in the dependency list, error. other game giving found 3 versions

Justin

  • *
  • Posts: 4709
You tried "Run > Clean Project" for both games before testing, right? If that didn't work, there might be an issue with using both the Google Play Games and Notifications extensions. Does disabling one (and you might need to do Run > Clean Project after disabling the extension) make it work?
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

vvitek

  • Posts: 118
I have some Notification extensions installed, but NOT enabled. Does that may give the error anyway? How uninstall extensions?

Justin

  • *
  • Posts: 4709
It shouldn't, but I have no idea what error you're getting. You never posted your logs.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

okyanusefer

  • Posts: 40
i have only admob extension. i tried with 3rd game, its giving same issue.

robinschaafsma

  • *
  • Posts: 714
Quote
i have only admob extension. i tried with 3rd game, its giving same issue.
Hi,

It seems that the old android-support-v4.jar is not deleted when updating Stencyl On windows.

Delete this one:
Code: [Select]
C:/path/to/Stencul-full/plaf/haxe/extensions/google/dependencies/google/libs/android-support-v4.jar
And if this folder excist delete it also:
Code: [Select]
C:/path/to/Stencyl-full/plaf/haxe/extensions/google/dependencies/google/libs/google-play-services_lib
There are the old google play service library that are not deleted after updating Stencyl on Windows, so you have the new libraries and the old libraries installed thats why you get compile error "Found 2 versions of android-support-v4.jar"

If you not comfortable to do this, i suggest to uninstall Stencyl completely and install it again, so the old library will not be installed.

*EDIT don't forget to run clean project after you did above thinks.

« Last Edit: October 09, 2016, 08:24:23 am by robinschaafsma »

robinschaafsma

  • *
  • Posts: 714
I have some Notification extensions installed, but NOT enabled. Does that may give the error anyway? How uninstall extensions?

No if you have not enabled it than it will give you no error. I will update the Notification extension to get it work with the new beta version.

Edit* Updated LocalNotification extension to use it with Stencyl buil 9186 or higher (this is the build when the new google play service library was updated)

So if you have compile error that says it  "Found 3 versions of android-support-v4.jar" Update Notification extension to version 2.5 and do what i said in above message. (delete old google play service library from Stencyl instllation folder or uninstall Stencyl completely and reinstall it)

« Last Edit: October 09, 2016, 08:17:21 am by robinschaafsma »

okyanusefer

  • Posts: 40
i deleted duplicate android-support files but when i compile, its creating automaticly :)

i updated all android sdk tools etc. and android support tools, its working now. thanks for helps.

okyanusefer

  • Posts: 40
i tried my other games, its giving like this error. i cleaned project.

vvitek

  • Posts: 118
@robinschaafsma Thanks a lot, for super quick and super good solve. Easy and worked! Thanks!

robinschaafsma

  • *
  • Posts: 714
i tried my other games, its giving like this error. i cleaned project.

Hi, i can see that you are using an old Admob extension 3.0.0 that gives problems..
Remove the blocks and disable this extension.
I advice to use the build-in admob function.

See stencylpedia how to use this.
http://www.stencyl.com/help/view/android-ads/

okyanusefer

  • Posts: 40
Thanks for helping. problem solved.