ShiVa 2.0 "Build options => System API" is empty.

Google Play Store, Amazon Kindle, Nook, and so many more

ShiVa 2.0 "Build options => System API" is empty.

Postby feng3d » 2017-04-16 06:57

I want to move my projects from Eclipse to Android Studio.
So I referred the documentation : http://www.shiva-engine.com/doc/publishing/android/
I followed the AS workflow guide and only installed Android Studio 2.3.1 and ShiVa 2.0 beta 8 on my Win 10 notebook.
But the "Android Build options => System API" is empty.
I checked the ShiVa menu => Settings -> Paths , and I be sure that I had added the SDK and NDK locations to ShiVa.

I can't export anything for Android...
Please help!
feng3d
Expert Boarder
Expert Boarder
 
Posts: 144
Joined: 2009-12-19 12:12

Re: ShiVa 2.0 "Build options => System API" is empty.

Postby feng3d » 2017-04-16 19:10

Followed the "Modern toolchain" to install Android Studio and set the SDK and NDK paths in ShiVa.
I have tried to publish android project on MacOS Sierra with ShiVa 2.0 beta 8 and Android Studio 2.3.1.
But the "Android Build options => System API" is still empty.
Was I missing some installation steps ?
feng3d
Expert Boarder
Expert Boarder
 
Posts: 144
Joined: 2009-12-19 12:12

Re: ShiVa 2.0 "Build options => System API" is empty.

Postby broozar » 2017-04-17 00:02

Hi feng, I won't be able to check before Tuesday since I don't have a Mac on me at the moment. But from what I remember it should work, and "System API" should not be empty.

- you followed the docs: good.
- you set the paths: good. can you please tell me what these paths are? Maybe it's in an unusual location or a path with characters that cannot be read. Please tell me the path names.
- which SDKs do you have actually installed? only the latest one that by default comes with AS, or did you install others like KitKat and Marshmallow? (please do install at least a 4.x compatible SDK)
User avatar
broozar
Administrator
Administrator
 
Posts: 4093
Joined: 2007-09-16 10:22
Location: Berlin - Germany

Re: ShiVa 2.0 "Build options => System API" is empty.

Postby feng3d » 2017-04-17 09:31

Hi broozar,

The installation procedures on Win10 and Mac Sierra computers were both first time.
-Here are the ShiVa setting paths names.
Window
SDK: C:\android_sdk
NDK: C:\android_sdk\ndk-bundle
MacOS
SDK: /Users/jim/Library/Android/sdk/
NDK: /Users/jim/Library/Android/sdk/ndk-bundle

-The installed SDKs are 2.3 , 2.3.3 , 3.2 , 4.0 , 4.4 ,7.0.
The installed NDK is r14b.

Thank you.
feng3d
Expert Boarder
Expert Boarder
 
Posts: 144
Joined: 2009-12-19 12:12

Re: ShiVa 2.0 "Build options => System API" is empty.

Postby broozar » 2017-04-18 14:16

sorry feng, I have been unable to confirm your problem on my own machine (MBA 2013, Sierra, fresh download of AS with JellyBean and Nougat SDKs as well as NDK). Shows up fine for me:

Image

Maybe an old ShiVa 2.0 beta is interfering with the authoring module, or some config file is messed up. It's easiest if you clear the ShiVa cache and try again. To do that, please close ShiVa and then delete:

/Users/jim/Library/Application\ Support/ShiVa

After that, start ShiVa (you will be asked to log in again) and see if that changes anything. Let me know how things go.
User avatar
broozar
Administrator
Administrator
 
Posts: 4093
Joined: 2007-09-16 10:22
Location: Berlin - Germany

Re: ShiVa 2.0 "Build options => System API" is empty.

Postby feng3d » 2017-04-18 16:54

Hi broozar,

I have solved this problem !
The key is the JDK...
I thought that "Modern toolchain" just need to install ShiVa 2.0 and AS.
But not so...
I ignored the installation of JDK. It caused that ShiVa 2.0 could not detect android SDK System API.
Thank you!
feng3d
Expert Boarder
Expert Boarder
 
Posts: 144
Joined: 2009-12-19 12:12

Re: ShiVa 2.0 "Build options => System API" is empty.

Postby broozar » 2017-04-18 17:52

So you are on Mac, and were prompted to install the JDK or had to manually install it yourself? Interesting, because a.) I was not asked to do so and b.) AS does come with its own distribution of (open)JDK as standard, to make it easy to install and use out of the box, installing as few dependencies as possible. On OSX, it should be installed under Applications/Android\ Studio.app/Contents/jre/jdk. Do you have that folder?
User avatar
broozar
Administrator
Administrator
 
Posts: 4093
Joined: 2007-09-16 10:22
Location: Berlin - Germany

Re: ShiVa 2.0 "Build options => System API" is empty.

Postby feng3d » 2017-04-18 19:32

I am on Mac and windows.
On Mac I was prompted to install the JDK.
If I skipped installation of the JDK ,the Android system API will keep empty in the ShiVa Editor.So I had to install it myself.After I installed JDK, the Android system API will appear in the ShiVa Editor.
On Windows I was not prompted to install the JDK.
But after installed JDK, the Android system API also appear in the ShiVa Editor.

Yes, I have this folder: /Applications/Android Studio.app/Contents/jre/jdk/
feng3d
Expert Boarder
Expert Boarder
 
Posts: 144
Joined: 2009-12-19 12:12

Re: ShiVa 2.0 "Build options => System API" is empty.

Postby broozar » 2017-04-18 20:19

thanks for checking and reporting back. I will add the JDK note to the docs.
User avatar
broozar
Administrator
Administrator
 
Posts: 4093
Joined: 2007-09-16 10:22
Location: Berlin - Germany

Re: ShiVa 2.0 "Build options => System API" is empty.

Postby feng3d » 2017-04-19 04:24

You're welcome!
Next, I'll try the Hooks and Callbacks in AS projects.
I hope everything goes well! :)
feng3d
Expert Boarder
Expert Boarder
 
Posts: 144
Joined: 2009-12-19 12:12


Return to Google Android

Who is online

Users browsing this forum: No registered users and 4 guests