#26 2016-06-11 21:30:27

StefvE
Member
Registered: 2016-06-09
Posts: 21

Re: Prepare the application's BAT files for Apache Cordova

Hello David

I installed all programs of the guide, but now I have another problem:

KOlOzxS.png

Any solutions?

Greetings,
Stef

Offline

#27 2016-06-11 21:58:31

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Prepare the application's BAT files for Apache Cordova

Hello Stef,

The error is more or less clear: you must add the "ANDROID_HOME" environment variable into the sytem's. Take a look at this article, for example:

http://www.nextofwindows.com/how-to-add … -windows-7

Or look around the web about how to add a new environment variable (the "ANDROID_HOME" one) in the system's environment variables.

Offline

#28 2016-06-11 22:06:51

StefvE
Member
Registered: 2016-06-09
Posts: 21

Re: Prepare the application's BAT files for Apache Cordova

I don't have the Android SDK on my laptop, may thats the problem?

Do I need to run debug/release/run?

Thank you for your help by the way!

Offline

#29 2016-06-11 22:11:19

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Prepare the application's BAT files for Apache Cordova

Hello,

Yes; you need the Android SDK installed in your computer. This is one of the steps in the above linked tutorial:

https://evothings.com/doc/build/cordova … ndows.html

Offline

#30 2016-06-11 22:20:23

StefvE
Member
Registered: 2016-06-09
Posts: 21

Re: Prepare the application's BAT files for Apache Cordova

Oh lol, I only installed "Cordova" and not all the other stuff. Sorry cool

Offline

#31 2016-06-11 22:22:44

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Prepare the application's BAT files for Apache Cordova

Hello Stef,

Don't worry! Take calm and follow the tutorial step by step. Sure that you finally be ready with this.

Offline

#32 2016-06-11 22:40:04

StefvE
Member
Registered: 2016-06-09
Posts: 21

Re: Prepare the application's BAT files for Apache Cordova

I'm feel like a noob right now but why if I change the AppName the build and run function doens't work anymore?

Offline

#33 2016-06-11 23:50:20

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Prepare the application's BAT files for Apache Cordova

Hello Stef,

Humm... of course the build and runs must continue working... the only difference can be the "_Compiled" directory: if you change the app's name, then the "_Compiled" directory reflect such change.

Offline

#34 2016-06-12 12:38:50

StefvE
Member
Registered: 2016-06-09
Posts: 21

Re: Prepare the application's BAT files for Apache Cordova

Strange, now it seems to work again for some reason...

Thanks David!

Offline

#35 2016-06-12 12:39:50

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Prepare the application's BAT files for Apache Cordova

Hello,

StefvE wrote:

Strange, now it seems to work again for some reason...

Thanks David!

Maybe the reason is I work for that! big_smile

Offline

#36 2016-06-12 13:22:15

StefvE
Member
Registered: 2016-06-09
Posts: 21

Re: Prepare the application's BAT files for Apache Cordova

I know the reason btw!

If you put a "?" or some other symbol in your app name it can't make the folder because a folder can't hold a "?" in the name property.

You may give people a warning in your next update when they are putting those symbols in the app name!

Greetings,
Stef

Offline

#37 2016-06-12 13:32:44

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Prepare the application's BAT files for Apache Cordova

Hello Stef,

You have reason. In fact, one thing is the app's name, and other thing is the app's project file name. We can set an app's name like "What happend?", and save the app in a file like "MyApp.ab".

However, currently App Builder uses the app's name to conform the "compiled" directory, and this can certainly causes problems with some app's names, like if the names contains something like the "?" char.

The next App Builder release probably conform the "compiled" directory name using the app's file path name, instead the app's name. In this way we shot two birds with one bullet, because Windows does not allow us to save an app's file name which contains non valid characters for file names.

Thanks for the suggestion Stef.

Offline

#38 2016-06-12 13:49:24

StefvE
Member
Registered: 2016-06-09
Posts: 21

Re: Prepare the application's BAT files for Apache Cordova

Hello David

I think this is a good solution for this problem, on that way we will be able to set that char in our app names!

Thank you David!

Offline

#39 2016-06-12 13:51:04

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Prepare the application's BAT files for Apache Cordova

Hello Stef,

My first step is to reply, why we need to set a "?" as our app name? But why not? It's a wrong assumption in App Builder to disallow names like "What happend?" or something like that, and I am working right now to fix it Stef.

Offline

#40 2016-06-12 13:59:37

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Prepare the application's BAT files for Apache Cordova

Hello Stef,

Update your App Builder copy. Now the program uses the app's file name instead of the app's name when prepare the "compile" directory. If you already updated your App Builder today, you may need to download it directly from their website:

https://www.davidesperalta.com/download/appbuilder

Offline

#41 2016-06-23 15:04:32

StefvE
Member
Registered: 2016-06-09
Posts: 21

Re: Prepare the application's BAT files for Apache Cordova

David wrote:

Hello Stef,

Update your App Builder copy. Now the program uses the app's file name instead of the app's name when prepare the "compile" directory. If you already updated your App Builder today, you may need to download it directly from their website:

https://www.davidesperalta.com/download/appbuilder

Saw my name in the update. cool

I've installed everything but I got this message:

Error: Please install Android target: "android-23".

Hint: Open the SDK manager by running: "C:\Users\Stef\AppData\Local\Android\sdk\tools\android.bat"
You will require:
1. "SDK Platform" for android-23
2. "Android SDK Platform-tools (latest)
3. "Android SDK Build-tools" (latest)

If I'm opening "C:\Users\Stef\AppData\Local\Android\sdk\tools\android.bat" I see nothing happening.

I only see a cmd popping up and dissapearing directly. Noting is happening...

Last edited by StefvE (2016-06-23 15:05:39)

Offline

#42 2016-06-23 17:02:22

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: Prepare the application's BAT files for Apache Cordova

Hello Stef,

Here in my system (after installing the Android SDK) I can found the executable in the below place:

C:\Users\[Your User Name]\AppData\Local\Android\android-sdk

Can you found the Android SDK Manager in that place? If not, are you installing the Android SDK alone or using some "bundle" like the included after you install Android Studio or the Eclipse IDE?

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.