# Android compilation problem

**URL:** <https://forums.imgtec.com/t/android-compilation-problem/791>\
**Category:** PowerVR Insider\
**Created:** [August 5, 2010, 3:28pm UTC](https://forums.imgtec.com/t/android-compilation-problem/791 "2010-08-05T15:28:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinrabier](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@martinrabier](https://forums.imgtec.com/u/martinrabier)\
**Post date:** [August 5, 2010, 3:28pm UTC](https://forums.imgtec.com/t/android-compilation-problem/791/1 "2010-08-05T15:28:21Z")

</div>

Hi!  
  
I have some trouble building training courses with android SDK openGL ES 1.1 and linux.  
The first is ok but when I build training courses including PVRShell, I have an error from javac when compiling PVRShell.java:  
package android.view does not exist…The error occurs on each import of an android class (95 errors…)  
Maybe my installation of java jdk is not good…  
If someone have solved this problem before or could help me…  
  
Thanking you in advance,  
  
Martin

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/scott/32/256_2.png) [@Scott](https://forums.imgtec.com/u/Scott)\
**Post date:** [August 5, 2010, 3:56pm UTC](https://forums.imgtec.com/t/android-compilation-problem/791/2 "2010-08-05T15:56:03Z")

</div>

Hi,
  

&nbsp;
  

martinrabier wrote:

  
package android.view does not exist...The error occurs on each import of an android class (95 errors...)  

  

&nbsp;
  

Is it just complaining about the android.view package missing or are there others? If there are others have you added the Android platforms and other components to your Android SDK as mentioned on&nbsp;[http://developer.android.com/sdk/index.html](http://developer.android.com/sdk/index.html)?
  

&nbsp;
  

Thanks,
  

&nbsp;
  

Scott

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/scott/32/256_2.png) [@Scott](https://forums.imgtec.com/u/Scott)\
**Post date:** [August 5, 2010, 4:01pm UTC](https://forums.imgtec.com/t/android-compilation-problem/791/3 "2010-08-05T16:01:14Z")

</div>

I forgot to add that if you have added the Android platforms you may need to set the ANDROID\_SDK\_PLATFORM variable to point to the platform you would like to use.

---

<div class="post-metadata">

**Author:** ![martinrabier](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@martinrabier](https://forums.imgtec.com/u/martinrabier)\
**Post date:** [August 5, 2010, 4:07pm UTC](https://forums.imgtec.com/t/android-compilation-problem/791/4 "2010-08-05T16:07:08Z")

</div>

You are a god for me Scott!!  
Thanks!  
I didn’t declare ANDROID\_SDK\_PLATFORM !!!  
I hope I will done some work by myself now!!

---

<div class="post-metadata">

**Author:** ![martinrabier](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@martinrabier](https://forums.imgtec.com/u/martinrabier)\
**Post date:** [August 5, 2010, 4:13pm UTC](https://forums.imgtec.com/t/android-compilation-problem/791/5 "2010-08-05T16:13:56Z")

</div>

The apk is built bu when I strt the application in the android simulator, it "freeze" on a blue screen  
I'm testing Multi-texturing sample..  
So the background is drawn but the boxes not...  
Have I to add some files to make it working?  
  
Is simulator able to draw it?  
  
martinrabier2010-08-05 18:15:27

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/scott/32/256_2.png) [@Scott](https://forums.imgtec.com/u/Scott)\
**Post date:** [August 6, 2010, 9:31am UTC](https://forums.imgtec.com/t/android-compilation-problem/791/6 "2010-08-06T09:31:48Z")

</div>

It seems when using the emulator you need to add a call to glViewport otherwise you don’t see anything besides the clear colour.

---

<div class="post-metadata">

**Author:** ![martinrabier](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@martinrabier](https://forums.imgtec.com/u/martinrabier)\
**Post date:** [August 6, 2010, 12:32pm UTC](https://forums.imgtec.com/t/android-compilation-problem/791/7 "2010-08-06T12:32:05Z")

</div>

It is working thank you!!  
  
Last question: is there an example of skinning&nbsp; with android? is Android compatible with “Matrix palette” skinning?
