Discussion Forums  >  Uncategorized

Replies: 13    Views: 155

Mathiask
Android Fan
Profile
Posts: 16
Reg: Nov 27, 2011
Limburg
160
11/28/11 12:05 PM (12 years ago)

Cannot compile my application

Hello all, This is more of an eclipse related question but I will take my chances with this. ANyway, I am getting these errors 1 Unable to resolve target 'Google Inc.:Google APIs:4' GamePlay Nation Unknown Android Target Problem 2 The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files Screen_Video.java /GamePlay Nation/src/com/v1_4/B35DBCDFFB267714D6CE713C/com line 1 Java Problem 3 Unable to resolve target 'Google Inc.:Google APIs:4' until the SDK is loaded. GamePlay Nation Unknown Android Target Problem 4 The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project GamePlay Nation Unknown Java Problem Problem is: Nothing is missing. I really have EVERY package installed in the ASDK ... Nothing is missing, even the useless and obsolete ones. Anyone might have any idea what eclipse is yapping about ?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/28/11 12:15 PM (12 years ago)
When you compile your program, you have to specifically set the API to the one referenced in your Readme file. I think that will solve this issue. Mark
 
Mathiask
Android Fan
Profile
Posts: 16
Reg: Nov 27, 2011
Limburg
160
like
11/28/11 12:37 PM (12 years ago)
It says I need to tick 1.6 but I only see android 2.1 and android 4.0.. Excuse the multiple posting, the forum appears to be a bit buggy.
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
11/28/11 01:33 PM (12 years ago)
Hi Mathiask, Eclipse setup can be tricky. Follow this installation tutorial and get the 'Hello World' test app up and running. http://developer.android.com/sdk/index.html There is a segment in this link that deals with adding and selecting APIs.
 
Mathiask
Android Fan
Profile
Posts: 16
Reg: Nov 27, 2011
Limburg
160
like
11/28/11 01:43 PM (12 years ago)
It displays an error for my androidmanifest.xml, saying that it cannot find the resources for @icon. This AFTER I imported a manual androidmanifest, which I filled in by hand. <manifest package=com.gameplaynation.app android:versionCode=1 android:versionName=Lonely Lantern xmlns:android=http://schemas.android.com/apk/res/android> <uses-sdk android:minSdkVersion=4/> <!-- permissions --> <uses-permission android:name=android.permission.INTERNET/> <uses-permission android:name=android.permission.ACCESS_NETWORK_STATE/> <uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/> <uses-permission android:name=android.permission.READ_PHONE_STATE/> <supports-screens android:anyDensity=true android:smallScreens=true android:normalScreens=true android:largeScreens=false android:resizeable=false/> <application android:name=GamePlayNation android:icon=@drawable/icon android:label=@string/app_name android:debuggable=true android:theme=@android:style/Theme.NoTitleBar> <!-- starting activity --> <activity android:name=.Act_Home android:screenOrientation=portrait> <intent-filter> <action android:name=android.intent.action.MAIN/> <category android:name=android.intent.category.LAUNCHER/> </intent-filter> </activity> <!-- screen activities --> <activity android:name=.Screen_About android:label=@string/app_name android:screenOrientation=sensor android:configChanges=orientation/> <activity android:name=.Screen_CustomHTML android:label=@string/app_name android:screenOrientation=sensor android:configChanges=orientation/> <activity android:name=.Screen_CustomText android:label=@string/app_name android:screenOrientation=sensor android:configChanges=orientation/> <activity android:name=.Screen_CustomURL android:label=@string/app_name android:screenOrientation=sensor android:configChanges=orientation/> <activity android:name=.Screen_QuizMultipleChoice android:label=@string/app_name android:screenOrientation=portrait/> <activity android:name=.Screen_QuizScores android:label=@string/app_name android:screenOrientation=portrait/> <activity android:name=.Screen_RSSReader android:label=@string/app_name android:screenOrientation=portrait/> <activity android:name=.Screen_ShareFacebook android:label=@string/app_name android:screenOrientation=portrait/> <activity android:name=.Screen_ShareTwitter android:label=@string/app_name android:screenOrientation=portrait/> <activity android:name=.Screen_SubMenu android:label=@string/app_name android:screenOrientation=portrait/> <activity android:name=.Screen_Video android:label=@string/app_name android:screenOrientation=sensor/> <activity android:name=.Screen_SingleImage android:label=@string/app_name android:screenOrientation=sensor/> <!-- IF GOOGLE MAPS ARE USED, UNCOMMENT THIS AND SEE THE INSTRUCTIONS IN THE README.txt FILE <uses-library android:name=com.google.android.maps /> <activity android:name=.Screen_LocationMap android:label=@string/app_name android:screenOrientation=sensor></activity> --> </application> </manifest>
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
11/28/11 02:14 PM (12 years ago)
Is the icon for your project included in the drawable folder? Is it named properly, and referenced properly in the manifest? Does your app load without errors when using a non manually typed manifest file? Perhaps you have a typo?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/29/11 01:06 AM (12 years ago)
@ Mathiask: If you're creating AndroidManifest.xml by hand something is horribly wrong. Have you seen the video we made about Common Android issues? See if you can get through that video and compile an generic Hello World app before worrying about compiling your buzztouch project.
 
steveh6883
buzztouch Evangelist
Profile
Posts: 383
Reg: May 15, 2011
Gosport, UK
3,830
like
11/29/11 03:28 AM (12 years ago)
Let me know if you need any 'hands on' help, my contact details are at the bottom of my first post here: http://www.buzztouch.com/forum/thread.php?tid=0311F030675DF938A9F0909 Steve
 
Mathiask
Android Fan
Profile
Posts: 16
Reg: Nov 27, 2011
Limburg
160
like
11/29/11 12:45 PM (12 years ago)
I don't understand what's wrong... I will try on my home pc when I get back home... but even if I follow every tutorial nothing works. Something with my SRC? http://www.buzztouch.com/files/temp/buzztouch_v14_AndroidB35DBCDFFB267714D6CE713C.zip
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/29/11 01:27 PM (12 years ago)
I was able to get this working in my environment. http://dl.dropbox.com/u/4993711/GamePlayNation.png I wrote up some instructions on configuring your development environment the other day...perhaps there is something you missed. You can find them here : http://btugwiki.com/index.php/Setting_Up_Android_Development_Environment [2011-11-29 13:20:56 - v1_4.buzztouch] ------------------------------ [2011-11-29 13:20:56 - v1_4.buzztouch] Android Launch! [2011-11-29 13:20:56 - v1_4.buzztouch] adb is running normally. [2011-11-29 13:20:56 - v1_4.buzztouch] Performing com.v1_4.B35DBCDFFB267714D6CE713C.com.Act_Home activity launch [2011-11-29 13:20:56 - v1_4.buzztouch] Automatic Target Mode: launching new emulator with compatible AVD 'BuzztouchDevice' [2011-11-29 13:20:56 - v1_4.buzztouch] Launching a new emulator with Virtual Device 'BuzztouchDevice' [2011-11-29 13:21:14 - v1_4.buzztouch] New emulator found: emulator-5554 [2011-11-29 13:21:14 - v1_4.buzztouch] Waiting for HOME ('android.process.acore') to be launched... [2011-11-29 13:22:04 - v1_4.buzztouch] HOME is up on device 'emulator-5554' [2011-11-29 13:22:04 - v1_4.buzztouch] Uploading v1_4.buzztouch.apk onto device 'emulator-5554' [2011-11-29 13:22:06 - v1_4.buzztouch] Installing v1_4.buzztouch.apk... [2011-11-29 13:22:24 - v1_4.buzztouch] Success! [2011-11-29 13:22:25 - v1_4.buzztouch] Starting activity com.v1_4.B35DBCDFFB267714D6CE713C.com.Act_Home on device emulator-5554 [2011-11-29 13:22:27 - v1_4.buzztouch] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.v1_4.B35DBCDFFB267714D6CE713C.com/.Act_Home } Let me know, after going through the instructions, if you need any further help! Mark
 
Mathiask
Android Fan
Profile
Posts: 16
Reg: Nov 27, 2011
Limburg
160
like
11/29/11 02:28 PM (12 years ago)
That's the PDF file I've used. I think I might try doing it on my laptop the upcoming weekend... this doesn't seem to be working correctly. Either way I can't get it to run with that PDF.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/29/11 04:24 PM (12 years ago)
Here's how I got it to work: * Fire up Eclipse * Go to File...Import * Select Existing Projects into Workspace (May have to expand the General section) * Hit Next * Select Select Root Directory, and hit Browse * Find the root folder of your project. For yours, this was buzztouch_v14_AndroidB35DBCDFFB267714D6CE713C * You should see your project listed and selected under the Projects section * Hit Finish * The project will load and the workspace will be built. You can see the progress in the lower right-hand corner * Once the project is done loading, you'll see 192 warnings in the Problems tab. This is OK...they are just warnings. * Highlight your project in Package Explorer. * Go to Run...Run As...Android Application * Watch the output in the Console tab. Everything should load as it did for me above. Let me know what happens! Mark
 
Mathiask
Android Fan
Profile
Posts: 16
Reg: Nov 27, 2011
Limburg
160
like
12/06/11 01:33 PM (12 years ago)
I reinstalled eclipse but it's still not working lol :x I only see android 2.2 and 4.0 in device list :S
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/06/11 01:41 PM (12 years ago)
Go to the Android SDK manager and basically download everything. It's not clear to me exactly how to find the API that we need for BT, but I do know that when I download it all, I manage to get it! Mark
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.