problem in adding import android.*;

Anything about development not directly related to libgdx, e.g. OpenGL, Android APIs etc.

problem in adding import android.*;

Postby masterhame » Thu Jun 08, 2017 7:02 pm

Hi
I want to use standard Android widgets in android.widget.*
there is a sample in https://github.com/libgdx/libgdx/blob/master/tests/gdx-tests-android/src/com/badlogic/gdx/tests/android/FragmentTestStarter.java
but when I copy this code in my android studio, there are everything missing!
How can I add missed classes to my project?
Can anybody help me plz?
this is a picture of problem:
Image
masterhame
 
Posts: 2
Joined: Sun Jun 04, 2017 12:25 pm

Re: problem in adding import android.*;

Postby evilentity » Thu Jun 08, 2017 7:07 pm

There is no android stuff in :core subproject. Stick that into :android.
Looking for a freelancer? PM me!
evilentity
 
Posts: 3896
Joined: Wed Aug 24, 2011 11:37 am

Re: problem in adding import android.*;

Postby masterhame » Fri Jun 09, 2017 9:52 am

How to stick :android to this project?
I check standard android projects, but there is nothing for referencing this libraries
plz explain more.
masterhame
 
Posts: 2
Joined: Sun Jun 04, 2017 12:25 pm

Re: problem in adding import android.*;

Postby evilentity » Fri Jun 09, 2017 12:58 pm

Move the code from core/src/ to android/src/
Looking for a freelancer? PM me!
evilentity
 
Posts: 3896
Joined: Wed Aug 24, 2011 11:37 am


Return to General Development

Who is online

Users browsing this forum: No registered users and 2 guests