Recent

Author Topic: [Solved] android-442 is an invalid integer ?!??!  (Read 10430 times)

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
[Solved] android-442 is an invalid integer ?!??!
« on: February 07, 2018, 01:57:51 pm »
Hi

when i want to create new project , i have Erroe??

can anyone help me?!?!
« Last Edit: November 05, 2018, 09:36:51 am by majid.ebru »

Bart

  • Hero Member
  • *****
  • Posts: 5265
    • Bart en Mariska's Webstek
Re: android-442 is an invalid integer ?!??!
« Reply #1 on: February 07, 2018, 04:37:11 pm »
The errormessage is correct though  O:-)

Bart

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: android-442 is an invalid integer ?!??!
« Reply #2 on: February 07, 2018, 05:11:00 pm »
LAMW?

Go to to  android-sdk folders and look for sub-folder "android-442" ..... where?
« Last Edit: February 07, 2018, 10:01:08 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: android-442 is an invalid integer ?!??!
« Reply #3 on: February 09, 2018, 06:59:21 pm »
LAMW?

Go to to  android-sdk folders and look for sub-folder "android-442" ..... where?

Yes LAMW

i don't have any "android-442" folder

when i click ok , Error

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: android-442 is an invalid integer ?!??!
« Reply #4 on: February 09, 2018, 08:49:44 pm »
Ok.

1) Try Fix Path to JDK .... only until "jdk1.8.0_112"  ... drop "\bin"

2) Try fix Path to Ant bin.... here we need add  "\bin"   
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: android-442 is an invalid integer ?!??!
« Reply #5 on: February 11, 2018, 07:06:20 am »
i fix this,but i have error

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: android-442 is an invalid integer ?!??!
« Reply #6 on: August 07, 2018, 07:11:34 pm »
Hi again

i update to version 0.8

 but i have error?!?!

new error.

i did'nt install JAVA(i can't install it) !?!? and i just copy java folder from other PC?!?
« Last Edit: August 07, 2018, 07:13:44 pm by majid.ebru »

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: android-442 is an invalid integer ?!??!
« Reply #7 on: August 07, 2018, 08:16:31 pm »
i did'nt install JAVA(i can't install it) !?!? and i just copy java folder from other PC?!?

Java is not a portable application.
https://en.wikipedia.org/wiki/Portable_application

Simple copy/paste from other computer usually won't work because some registry and config settings may not be copied properly. Unless you're a Windows expert so you know how to copy them manually (using registry export tool and know where the hidden files stored).


There is a portable version of Java, but it is a different story:
https://portableapps.com/apps/utilities/java_portable
« Last Edit: August 07, 2018, 08:33:44 pm by Handoko »

sameer

  • New Member
  • *
  • Posts: 13
Re: android-442 is an invalid integer ?!??!
« Reply #8 on: August 07, 2018, 08:47:36 pm »
Hi Majid,

I used to get similar error too. I sorted it out by renaming folders.


Ensure this :
1. Your Gradle file path string should end with "4.1". If you have something like "4.8 rc 2" then you get this error.

2. Your Android SDK folder file path string should not contain any "P" character.

Regards

-Sameer

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: android-442 is an invalid integer ?!??!
« Reply #9 on: August 09, 2018, 06:39:12 pm »

Quote
2. Your Android SDK folder file path string should not contain any "P" character.

I will fix it!


Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: android-442 is an invalid integer ?!??!
« Reply #10 on: October 16, 2018, 07:15:21 pm »
Hi

i deleted folders "platforms" and "build-tools" from SDK folder.

now i can open new project but i have errors ???

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: android-442 is an invalid integer ?!??!
« Reply #11 on: October 16, 2018, 07:29:31 pm »
Quote
i deleted folders "platforms" and "build-tools" from SDK folder.

I'm sorry, but that does not make sense ...  LAMW need  "platforms" and "build-tools" contents folders ...
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: android-442 is an invalid integer ?!??!
« Reply #12 on: October 16, 2018, 07:35:42 pm »
i deleted folders "platforms" and "build-tools" from SDK folder.

You should not delete the folders manually, but you use Android SDK Manager instead. Now, you should run your Android SDK Manager and reinstall them.

I use this combination below, and it works on my Linux machine LAMW 0.8 to build Android app to run on my Android 7 mobile phone:

- Android SDK Tools Rev. 25.2.5
- Android SDK Platform-tools Rev. 28.0.1
- Android SDK Build-tools Rev. 25
- SDK Platform API 25 Rev. 3
- Google APIs ARM EABI v7a System Image API 25 Rev. 14

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: android-442 is an invalid integer ?!??!
« Reply #13 on: October 16, 2018, 07:44:34 pm »
i can't download from Android site.

so i must download zip files.

i find error.

i change folder name and error solved.

but i have another error:

"Fatal: [EStringListError] Failed: List index (0) out of bounds"

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: android-442 is an invalid integer ?!??!
« Reply #14 on: October 16, 2018, 07:51:10 pm »
I'm not very sure but if I remember correctly "List index (0) out of bounds" could happen if there is some fault values in your *.frm file. You may manually repair the file if you know how, but that is not easy.

Try to start a new Android project. Maybe hello world, to test if your Lazarus, LAMW, SDK, NDK, etc still work correctly.

 

TinyPortal © 2005-2018