Problem with Android Studio

Discussions of the development process of the game.
Nut
Posts: 130
Joined: Mon Oct 27, 2014 12:14 pm
android_version: 4.4

Problem with Android Studio

Post by Nut » Thu Jul 13, 2017 5:24 pm

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
_____
Nut: Lvl 61, HP 103, AC 273%, AD 32-41, CHS 67, BC 159% WA 3, Do 5, BS MC 1, CS 2, IF 1, Reg 1, WP 1, S 1, AP L 1, RoLS
Anwyn: Lvl 52, HP 126, AC 221%, AD 28-36, CHS 27, BC 119% Do 4, CS 2, IF 3, Ev 2, Reg 1, Ta 1, RoLS

Zukero
Lead Developer
Posts: 1478
Joined: Thu Jul 21, 2011 9:56 am
android_version: 7.1

Re: Problem with Android Studio

Post by Zukero » Thu Jul 13, 2017 5:38 pm

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: 1652
Joined: Tue Aug 20, 2013 2:04 am
android_version: 6.0
Location: Somewhere in Dhayavar

Re: Problem with Android Studio

Post by rijackson741 » 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?
Level: 64, XP: 4734786, HP: 196, AC: 246%, AD: 49-59, AP: 3, ECC: 25%, CM: 3, BC: 127%, DR: 2
Gold: 232355 | RoLS: 1, RoL: 1, GoW: 1
HH: 1, CS: 2, IF: 4, Ev: 3, Re: 2, WP:DA: 1, WP:1S: 1, AP:L: 1, FS:DW: 2, S:DW: 1
SR

Zukero
Lead Developer
Posts: 1478
Joined: Thu Jul 21, 2011 9:56 am
android_version: 7.1

Re: Problem with Android Studio

Post by Zukero » Thu Jul 13, 2017 7:38 pm

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: 1652
Joined: Tue Aug 20, 2013 2:04 am
android_version: 6.0
Location: Somewhere in Dhayavar

Re: Problem with Android Studio

Post by rijackson741 » Thu Jul 13, 2017 7:58 pm

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: 64, XP: 4734786, HP: 196, AC: 246%, AD: 49-59, AP: 3, ECC: 25%, CM: 3, BC: 127%, DR: 2
Gold: 232355 | RoLS: 1, RoL: 1, GoW: 1
HH: 1, CS: 2, IF: 4, Ev: 3, Re: 2, WP:DA: 1, WP:1S: 1, AP:L: 1, FS:DW: 2, S:DW: 1
SR

Nut
Posts: 130
Joined: Mon Oct 27, 2014 12:14 pm
android_version: 4.4

Re: Problem with Android Studio

Post by Nut » Thu Jul 13, 2017 8:58 pm

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
_____
Nut: Lvl 61, HP 103, AC 273%, AD 32-41, CHS 67, BC 159% WA 3, Do 5, BS MC 1, CS 2, IF 1, Reg 1, WP 1, S 1, AP L 1, RoLS
Anwyn: Lvl 52, HP 126, AC 221%, AD 28-36, CHS 27, BC 119% Do 4, CS 2, IF 3, Ev 2, Reg 1, Ta 1, RoLS

User avatar
rijackson741
Posts: 1652
Joined: Tue Aug 20, 2013 2:04 am
android_version: 6.0
Location: Somewhere in Dhayavar

Re: Problem with Android Studio

Post by rijackson741 » Thu Jul 13, 2017 9:53 pm

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: 64, XP: 4734786, HP: 196, AC: 246%, AD: 49-59, AP: 3, ECC: 25%, CM: 3, BC: 127%, DR: 2
Gold: 232355 | RoLS: 1, RoL: 1, GoW: 1
HH: 1, CS: 2, IF: 4, Ev: 3, Re: 2, WP:DA: 1, WP:1S: 1, AP:L: 1, FS:DW: 2, S:DW: 1
SR

Nut
Posts: 130
Joined: Mon Oct 27, 2014 12:14 pm
android_version: 4.4

Re: Problem with Android Studio

Post by Nut » Fri Jul 14, 2017 9:44 pm

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
_____
Nut: Lvl 61, HP 103, AC 273%, AD 32-41, CHS 67, BC 159% WA 3, Do 5, BS MC 1, CS 2, IF 1, Reg 1, WP 1, S 1, AP L 1, RoLS
Anwyn: Lvl 52, HP 126, AC 221%, AD 28-36, CHS 27, BC 119% Do 4, CS 2, IF 3, Ev 2, Reg 1, Ta 1, RoLS

User avatar
rijackson741
Posts: 1652
Joined: Tue Aug 20, 2013 2:04 am
android_version: 6.0
Location: Somewhere in Dhayavar

Re: Problem with Android Studio

Post by rijackson741 » Fri Jul 14, 2017 10:13 pm

Good to know you got it working :D
Level: 64, XP: 4734786, HP: 196, AC: 246%, AD: 49-59, AP: 3, ECC: 25%, CM: 3, BC: 127%, DR: 2
Gold: 232355 | RoLS: 1, RoL: 1, GoW: 1
HH: 1, CS: 2, IF: 4, Ev: 3, Re: 2, WP:DA: 1, WP:1S: 1, AP:L: 1, FS:DW: 2, S:DW: 1
SR

User avatar
rijackson741
Posts: 1652
Joined: Tue Aug 20, 2013 2:04 am
android_version: 6.0
Location: Somewhere in Dhayavar

Re: Problem with Android Studio

Post by rijackson741 » Fri Jul 14, 2017 11:13 pm

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: 64, XP: 4734786, HP: 196, AC: 246%, AD: 49-59, AP: 3, ECC: 25%, CM: 3, BC: 127%, DR: 2
Gold: 232355 | RoLS: 1, RoL: 1, GoW: 1
HH: 1, CS: 2, IF: 4, Ev: 3, Re: 2, WP:DA: 1, WP:1S: 1, AP:L: 1, FS:DW: 2, S:DW: 1
SR

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest