Jan88
Aspiring developer
Profile
Posts: 9
Reg: May 17, 2014
Bangkok
3,240
05/23/14 11:18 PM (10 years ago)

Lots of errors with unmodified project

Hey everyone, I just started working with Buzztouch a few days ago. Went through all tutorials and assume I have a quite good understanding of how everything works. I do not have any issues with Xcode, but Eclipse and the ADT are causing some headache now and I know hope someone can help me. I followed the instructions-v3-android.pdf and the tutorial video: <a href="http://www.youtube.com/watch?v=UgurXKgP2AE" target="_blank" rel="nofollow">http://www.youtube.com/watch?v=UgurXKgP2AE</a> Directly after importing it displays a few errors. One is in the Manifest file and all others in com.myproject package folder. Linking the Playservice Library did not fix any errors. Here a screenshot: <a href="http://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-ash3/t31.0-8/10296316_10202823509861307_2149562892074372492_o.jpg" target="_blank" rel="nofollow">http://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-ash3/t31.0-8/10296316_10202823509861307_2149562892074372492_o.jpg</a> Here my project: <a href="http://whitecardasia.com/files/whitecardasia_Android-3.zip" target="_blank" rel="nofollow">http://whitecardasia.com/files/whitecardasia_Android-3.zip</a> What I tried so far. 1. Forcing the java compiler to run on level 1.6 2. Trying different Android Build Targets (3.1, 4.0 and 4.2.2) 3. Running the standalone Eclipse with the ADT and not directly out of the ADT folder. 4. Re-downloaded the project 5. Re-downloaded ADT I would greatly appreciate if anyone can help me to fix these errors. Thank you so much. - Jan
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/24/14 02:49 AM (10 years ago)
Would you happen to have a 'google-play-services-remove.jar' file in your 'libs' directory? If so remove it. The image 'appears' to be like an incorrect API, but you seem to have the right one... Have you just plain old 'cleaned' the project? Menu > Project > Clean... Might help... Cheers! -- Smug
 
Jan88
Aspiring developer
Profile
Posts: 9
Reg: May 17, 2014
Bangkok
3,240
like
05/24/14 02:56 AM (10 years ago)
Hi Smug, Thank you for your time looking into it. Unfortunately there is no 'google-play-services-remove.jar' in the libs directory. Interestingly the errors come already up when I import the downloaded project in eclipse/adt before I link to the play service lib. Also I have cleaned the project already a couple of times. So far the weirdest issue for me is that there is directly an error in the manifest file after I imported it. I would understand errors with the code itself but the manifest file should work out of the box, shouldn't it? I also tried with the Android Tools to fix the project properties. That did not help either. I would really appreciate any help with this, since I'm running out of ideas. Thank you again Smug and also to everyone else who is looking into it.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/24/14 03:14 AM (10 years ago)
Well, they haven't been including them in recent packages, but you never know... Is it possible you've added a plugin that isn't 'really' for Android... java files that 'should' be there may not be, yet there could be an entry in the android manifest file... That you get an error in the manifest file is a bit odd; so I'm curious which plugin is being referenced in the error, if any... When you open up the manifest file in your editor, is there multiple errors, or just one line? Cheers! -- Smug
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/24/14 03:20 AM (10 years ago)
This is odd... I loaded up your project (as referenced from the above URL) and loaded it into my eclipse... I got errors, similar to yours. I referenced my google play library. Still had errors. I changed my API from 14 to 15. Errors went away. Changed the API from 15 to 14. Errors stayed away. The app did launch, and there were issues with the app config data that will need to be resolved. BUT it did launch. Cheers! -- Smug
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/24/14 03:24 AM (10 years ago)
Not sure why, but you have an error in your 'context menus'; your current version is missing a comma between the 'titleText' and the 'loadScreenWithItemId' key/value pairs... It 'should' look like this: "BT_menus": [ { "itemId": "2EAA83B4DB663814439138D", "itemType": "BT_menu", "itemNickname": "Short Info", "childItems": [ { "itemId": "56C5792E7518838A4F036FF", "itemType": "BT_menuItem", "titleText": "Contact WCA", "loadScreenWithItemId": "3096A8B5701E91FBCE77EA2" }, { "itemId": "6DFB036B1ED09A936462582", "itemType": "BT_menuItem", "titleText": "Give Twenty Five", "loadScreenWithItemId": "40BD244211A5AD225650E4D" } ] } ], Cheers! -- Smug
 
Jan88
Aspiring developer
Profile
Posts: 9
Reg: May 17, 2014
Bangkok
3,240
like
05/24/14 03:28 AM (10 years ago)
Again a BIG thank you to you Smug. That sounds fantastic. I'm just downloading the API 15. It was still missing on my system. After that I will look into the context menu issues. I just used the normal Buzztouch way to add the context menu. Will definitely also have a look into that. After I'm done I will post again. Thank you. - Jan
 
Jan88
Aspiring developer
Profile
Posts: 9
Reg: May 17, 2014
Bangkok
3,240
like
05/24/14 09:39 PM (10 years ago)
Good morning Smug, I finally had time to check it and it worked. AWESOME! Is it normal that the map module is not working in the emulator? All other parts of the app seem to run well. Thank you so much already. - Jan
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/24/14 11:51 PM (10 years ago)
Yeah, it's been documented that the Google Maps won't work in the Emulator since they moved to the v2 API Key... The old one did, but so long to that... It does work well in an actual device... Which basically means you can only know 'for sure' if you test in a device, or have a friend load up the apk and test for you... a bit cumbersome, but there's no going around that. Glad everything else is sailing. Cheers! -- Smug
 

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.