v0.8.9 (Bugfixes + translations) released to Google Play!

Useful links
Source code of the game - Contribution guide - ATCS Editor - Translate the game on Weblate - Example walkthrough - Andor's Trail Directory - Join the Discord
Get the game (v0.8.9) from Google, F-Droid, our server, or itch.io

Problem with Android Studio

Discussions of the development process of the game.
User avatar
Nut
Posts: 1499
Joined: Mon Oct 27, 2014 12:14 pm
android_version: 8.0
Location: Glade

Problem with Android Studio

Post by Nut »

Hi developers,

several weeks ago I tried ATCS - really a nice program! I learned a bit about the internals of map making, and tried my own.
Then of course I wanted to walk through it, so I inserted it to my old PC with Android Studio and AT already set up.
This worked (after some trying...)

Unfortunately I can't use this PC, so I installed Android Studio and the AT source on a brand new Notebook.
But all I get is "failed to load dx.jar" :( :x


Google only found comments like "deinstall and reinstall". This I had done already on another PC many times, spent frustrating hours with no result.
I don't want to mess up this fresh PC. Please tell me that it is just a simple Setting to Change!

I have Android Studio 2.3.3
Project Structure:
Project SDK 1.8.0_112release
Project language Level SDK-Default (8)
Platform Settings: SDK 1.8
Settings: Java-Compiler: ProjectBytecodeVersion 1.8
virtual device: Nexus 5x with Nougat

and the source I cloned from https://github.com/Zukero/andors-trail.git
Nut
User avatar
Zukero
Lead Developer
Posts: 2028
Joined: Thu Jul 21, 2011 9:56 am
android_version: 8.0
Location: Eclipse

Re: Problem with Android Studio

Post by Zukero »

I don't know android studio, but my first guess would be that you're lacking some packages from the android SDK Manager. Stuff like sdk-tools, platform-tools and SDK for the latest API target.
Lvl: 78, XP: 8622632, Gold: 271542, RoLS: 1, ElyR: -, RoL: -, ChaR: 1, GoLF: 1, ShaF: 1, SRoV: 1, VSH: 1, WMC: 1, GoW: 1
HP: 71, AC: 301%, AD: 38-47, AP: 3, ECC: 50%, CM: 3.75, BC: 101%, DR: 2
User avatar
rijackson741
Posts: 4451
Joined: Tue Aug 20, 2013 2:04 am
android_version: 10 - Android 10
Location: Somewhere in Dhayavar
Contact:

Re: Problem with Android Studio

Post by rijackson741 »

If you go to "Tools", "Android", "SDK Manager", Does it show that you have at least one version of the SDK installed?
Level:71, XP:6493739, PV:608, FQ:84
HP:210, AC:212, AD:58-77, AP:4, ECC:16%, CM:1.5, BC:188, DR:3
Gold: 237559 | RoLS:1, RoL:1, GoW:1, VSH:1, RoFLS:1, WoB:1
HH:1, WA:1, CS:2, Cl:1, IF:4, Ev:3, Re:2, WP:DA:1, WP:1S:1, WP:B:1, AP:L:1, FS:DW:2, S:DW:1
User avatar
Zukero
Lead Developer
Posts: 2028
Joined: Thu Jul 21, 2011 9:56 am
android_version: 8.0
Location: Eclipse

Re: Problem with Android Studio

Post by Zukero »

You must have the one matching the target API version mentioned in the AT source.
See https://github.com/Zukero/andors-trail/ ... properties
Lvl: 78, XP: 8622632, Gold: 271542, RoLS: 1, ElyR: -, RoL: -, ChaR: 1, GoLF: 1, ShaF: 1, SRoV: 1, VSH: 1, WMC: 1, GoW: 1
HP: 71, AC: 301%, AD: 38-47, AP: 3, ECC: 50%, CM: 3.75, BC: 101%, DR: 2
User avatar
rijackson741
Posts: 4451
Joined: Tue Aug 20, 2013 2:04 am
android_version: 10 - Android 10
Location: Somewhere in Dhayavar
Contact:

Re: Problem with Android Studio

Post by rijackson741 »

Maybe I misunderstand what you mean, but ...

The files says target=android-21, but I have only Android 6.0 (23) installed, and everything works.
Level:71, XP:6493739, PV:608, FQ:84
HP:210, AC:212, AD:58-77, AP:4, ECC:16%, CM:1.5, BC:188, DR:3
Gold: 237559 | RoLS:1, RoL:1, GoW:1, VSH:1, RoFLS:1, WoB:1
HH:1, WA:1, CS:2, Cl:1, IF:4, Ev:3, Re:2, WP:DA:1, WP:1S:1, WP:B:1, AP:L:1, FS:DW:2, S:DW:1
User avatar
Nut
Posts: 1499
Joined: Mon Oct 27, 2014 12:14 pm
android_version: 8.0
Location: Glade

Re: Problem with Android Studio

Post by Nut »

rijackson741 wrote: Thu Jul 13, 2017 6:17 pm If you go to "Tools", "Android", "SDK Manager", Does it show that you have at least one version of the SDK installed?
yes

SDK Platforms:
Android 7.1.1 (Nougat) Android SDK Platform 25.3, Sources for Android 25.1
Android 7.0 (Nougat) Google APIs 24.1, Google Play Intel x86 Atom System Image 24.13

SDK-Tools:
Android SDK Build-Tools 26, Android SDK Platform-Tools 26.0.0, Android SDK Tools 26.0.2
Support Repository: Android Support Repository 47.0.0, Google repository 55

is it a wrong Version? too new maybe?
Zukero wrote: Thu Jul 13, 2017 7:38 pm You must have the one matching the target API version mentioned in the AT source.
So I must use Lollipop (21) as SDK platform instead?
Must I deselect the Nougat before, or can I just add it?
Nut
User avatar
rijackson741
Posts: 4451
Joined: Tue Aug 20, 2013 2:04 am
android_version: 10 - Android 10
Location: Somewhere in Dhayavar
Contact:

Re: Problem with Android Studio

Post by rijackson741 »

Here's what I have:

SDK Platforms:
Android 6.0 (Marshmallow) 23, Android SDK Platform 23.3, Sources for Android 23.1

SDK-Tools:
Android SDK Build-Tools 26, Android SDK Platform-Tools 25.0.3, Android SDK Tools 25.2.5
Intel x86 Emulator Accelerator (HAXM Installer) 6.0.5
Support Repository: Android Support Repository 41.0.0, Google repository 41
Level:71, XP:6493739, PV:608, FQ:84
HP:210, AC:212, AD:58-77, AP:4, ECC:16%, CM:1.5, BC:188, DR:3
Gold: 237559 | RoLS:1, RoL:1, GoW:1, VSH:1, RoFLS:1, WoB:1
HH:1, WA:1, CS:2, Cl:1, IF:4, Ev:3, Re:2, WP:DA:1, WP:1S:1, WP:B:1, AP:L:1, FS:DW:2, S:DW:1
User avatar
Nut
Posts: 1499
Joined: Mon Oct 27, 2014 12:14 pm
android_version: 8.0
Location: Glade

Re: Problem with Android Studio

Post by Nut »

Ha! Now it is working!

Probably a combinatition

As SDK platform I have now 25+21 installed,
Project SDK 25 (Java 1.8)
Project language Level 6
But only after I deinstalled SDK Platform 26 it worked: Mikhail greeted me: "Oh good, you are awake" How Fitting!

Thanks for your tipps!

After all those grinding hours AndroidStudio finally dropped not a RolS but an AndorsTrail :P
Nut
User avatar
rijackson741
Posts: 4451
Joined: Tue Aug 20, 2013 2:04 am
android_version: 10 - Android 10
Location: Somewhere in Dhayavar
Contact:

Re: Problem with Android Studio

Post by rijackson741 »

Good to know you got it working :D
Level:71, XP:6493739, PV:608, FQ:84
HP:210, AC:212, AD:58-77, AP:4, ECC:16%, CM:1.5, BC:188, DR:3
Gold: 237559 | RoLS:1, RoL:1, GoW:1, VSH:1, RoFLS:1, WoB:1
HH:1, WA:1, CS:2, Cl:1, IF:4, Ev:3, Re:2, WP:DA:1, WP:1S:1, WP:B:1, AP:L:1, FS:DW:2, S:DW:1
User avatar
rijackson741
Posts: 4451
Joined: Tue Aug 20, 2013 2:04 am
android_version: 10 - Android 10
Location: Somewhere in Dhayavar
Contact:

Re: Problem with Android Studio

Post by rijackson741 »

Nut wrote: Thu Jul 13, 2017 5:24 pm I learned a bit about the internals of map making, and tried my own.
I forgot to ask. where did you put them? You have to be careful about this, because there are quite a few unpublished maps, and we don't want anyone to waste work :)
Level:71, XP:6493739, PV:608, FQ:84
HP:210, AC:212, AD:58-77, AP:4, ECC:16%, CM:1.5, BC:188, DR:3
Gold: 237559 | RoLS:1, RoL:1, GoW:1, VSH:1, RoFLS:1, WoB:1
HH:1, WA:1, CS:2, Cl:1, IF:4, Ev:3, Re:2, WP:DA:1, WP:1S:1, WP:B:1, AP:L:1, FS:DW:2, S:DW:1
Post Reply