hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
11/28/13 01:10 PM (11 years ago)

So many errors....

Hello Everyone, So with all the new updates, new plug-ins and being off for the day, I thought I would try to update my app which I have not touched for 2-3 months. I added a new plug-in, went through the steps to download the Android source code 3.0 and opened it as a new project in Eclipse. I got some of the usual errors and fixed them with my limited know-how. But I am still getting over 300 errors and I do not know where to start. I am still using eclipse and have not started to use the new studio program. I am not sure if that could be the problem. I know its hard to give advise to errors that you don't see, but if someone can advise to where I can get started to try to fix them, that would be most appreciated. Thanks, Howard
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/28/13 03:37 PM (11 years ago)
Are you compiling for the new Android? Does it require any Google resources? If so, you'll need to use the Google Play Services SDK. https://www.buzztouch.com/files/howtos/GPSRefBT.pdf In the same 'area' as the LogCat, one of the tabs may be titled 'problems'. That tab may be full, but it can also point to why it's having trouble. Perhaps it can shed a little light on the issue? Let us know how it goes. Cheers! -- Smug
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
11/29/13 07:04 PM (11 years ago)
Hi Smug, I am compiling for new android or at least I think I am. I will have to go through the PDF and see if that helps. If this helps, In the problem list I would say about 98% errors seems to be "R cannot be resolved to a variable" I don't know what that means. howard
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/29/13 07:17 PM (11 years ago)
Hmmm… that sounds more like the older android… When you first import the app into Eclipse, the whole project bleeds red, until you change the API from Android v2.2 (API 8) to Google v2.2 (API 8). Then you have to 'clean' your project, from under the project menu. That usually clears that up. Cheers! -- Smug
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
11/29/13 07:30 PM (11 years ago)
So I changed it to google v2.2 (API8) and I went from around 300 errors to more that 500 errors. Also how do I know if I am using the new android version. When I compiled I chose "Use the Buzztouch Core for Android 3.0" Thanks, Howard
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/29/13 07:33 PM (11 years ago)
Well, if you chose the new BT v3 Android core, that usually comes down without needing much modification, except maybe Google Play Services, but you really only have to do that if you want something Google in your app, and either way, it doesn't leak red like that. Ensure it's back at Android API 11 (not Google API 11). I'm sure there is a more simple way, but the way I can tell pretty quickly is, if in any plugin java file the class 'extends activity' then it's BT v2. If it 'extends Fragment' then it's the new BT Core. Have you done a 'clean project'? Cheers! -- Smug Sometimes, when I do something that Android doesn't like, it will affect seemingly every class in the project. If you've done something to any of the files (java or xml), undo your changes (or comment them out, or whatever is most convenient) and see if that helps. If you haven't done anything, check the installation PDF and make sure you haven't missed any steps, and do a 'clean' project, from the project menu.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
11/29/13 07:55 PM (11 years ago)
@smug public class BT_screen_splash extends BT_fragment implements OnTouchListener{ Is that what you are referring to as to determine if it is new core or not. I have done the clean with no resolution. Now I am working through the installation PDF and the link you previously supplied. Thanks, Howard
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/29/13 08:08 PM (11 years ago)
Yep; that's the new stuff. For the time being, make sure none of the steps were missed. I've been doing this for a bit; I know it works. But I've been doing it for a while now, and I tend to 'overlook' the little details that can make a big difference. Regardless, we can work through this. One step at a time :) Cheers! -- Smug
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
11/29/13 08:41 PM (11 years ago)
so I ran through the installation instructions as well as your google_play lib importation and didn't seem to help much. The one thing I did notice on the a installation instructions it showed Android 4.0/API 14, I only have Android 3/API 11. Also I have errors in my errors in my manifest which I can not see where. howard
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/29/13 08:55 PM (11 years ago)
I think you're right. I'm fooling around in an Android project now, and it's at API 14. If you don't have it, you can download it easily enough under the menu 'window' > 'SDK Manager' and select API 14, and let it download and install for you. Cheers! -- Smug
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
11/30/13 08:10 AM (11 years ago)
Okay, so I downloaded 4.0 and it fixed about 99% of the problems :-). I still have 3 errors though. 2 intentintergrater.java and 1 is for the new plug-in QR reader java file. Thanks, Howard
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
12/08/13 05:12 PM (11 years ago)
With the help of Chris, this seems to have been the problem It would seem that this problem is sometimes caused by a Project | Properties | Java Compiler being set to 1.5. Setting it to 1.6 removed the errors..
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
12/08/13 06:25 PM (11 years ago)
Now that's interesting. Glad you got it sussed out. :) 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.