eclipse will not compile [message #986562] |
Tue, 20 November 2012 18:23  |
Eclipse User |
|
|
|
Hello, everyone, I have been having an on-going problem with eclipse doing Android projects. I think I have the latest eclipse updates.
I get a program to run, I have even uploaded one to Google Store, I make a small change and then I get an error something to the effect that there are errors and the program cannot run. There is no indication of what the errors are, and there is nothing helpful in the problems window. I change everything back to what it was originally and it still won't run. The only solution I have found to work is to start from scratch with a new package, copy the code from each file bit by bit (hi hi), make sure the program runs at every step of the way, and then hope and pray that it will keep running when I make some changes.
This is very frustrating, have any of you encountered this?
Cheers,
Jacques
|
|
|
Re: eclipse will not compile [message #986572 is a reply to message #986562] |
Tue, 20 November 2012 20:10   |
Eclipse User |
|
|
|
On 11/20/2012 5:51 PM, Jacques Chaurette wrote:
> Hello, everyone, I have been having an on-going problem with eclipse
> doing Android projects. I think I have the latest eclipse updates.
>
> I get a program to run, I have even uploaded one to Google Store, I make
> a small change and then I get an error something to the effect that
> there are errors and the program cannot run. There is no indication of
> what the errors are, and there is nothing helpful in the problems
> window. I change everything back to what it was originally and it still
> won't run. The only solution I have found to work is to start from
> scratch with a new package, copy the code from each file bit by bit (hi
> hi), make sure the program runs at every step of the way, and then hope
> and pray that it will keep running when I make some changes.
>
> This is very frustrating, have any of you encountered this?
>
> Cheers,
>
> Jacques
Salut!
This isn't an Android programming support forum (Android tools are
developed atop Eclipse, but not by Eclipse). However, if you showed an
image of what you're seeing we could tell more quickly whether to send
to an Android forum or find an answer here. I've done some Android
programming and based on what you've said, I can't imagine where to start.
|
|
|
|
|
|
Re: eclipse will not compile [message #987550 is a reply to message #987538] |
Tue, 27 November 2012 01:41   |
Eclipse User |
|
|
|
On 11/26/2012 09:52 PM, Jacques Chaurette wrote:
> Hi Russell, did'nt see that reply, getting more and more problems of the
> same nature, the latest message I am getting in the problems tab is
> "Android packaging problem", no reference to location. thinking
> something was wrong with my java JRE I downloaded a new one, also
> thinking something is wrong with eclipse I downloaded a new one. No
> help. I replace the reverse com package name because the forum software
> won't allow links.
>
> Here is the android manifest file:
>
> thanks,
>
> Jacques
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <manifest xmlns:android="?????/apk/res/android"
> package="?????pump_power"
> android:versionCode="1"
> android:versionName="1.0" >
>
> <uses-sdk
> android:minSdkVersion="8"
> android:targetSdkVersion="16" />
>
> <application
> android:allowBackup="true"
> android:icon="@drawable/ic_launcher"
> android:label="@string/app_name"
> android:theme="@style/AppTheme" >
> <activity
> android:name="??????pump_power.Splash"
> android:label="@string/title_activity_convert" >
> <intent-filter>
> <action android:name="android.intent.action.MAIN" />
>
> <category
> android:name="android.intent.category.LAUNCHER" />
> </intent-filter>
> </activity>
> <activity
> android:name="????pump_power.MainActivity"
> android:label="@string/title_activity_convert" >
> <intent-filter>
> <action android:name="????pump_power.MAINACTIVITY" />
>
> <category android:name="android.intent.category.DEFAULT" />
> </intent-filter>
> </activity>
> </application>
>
> </manifest>
>
I'm not certain since this never happened to me. (Also, I don't know
what the ????? is standing in for here.)
Googling for androidmanifest.xml segments, I see notes to the effect
that the "package="xxx.yyy" attribute should be a package name
consisting of at least two levels of hierarchy (i.e., "two segments"),
such as fr.chaurette (and not merely pump_power?). However, I think this
is a bit of a red herring (une fausse diversion, quoi).
Specifically, one Google tutorial, publicly available, shows:
AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.developer.notepad1"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon"
android:label="@string/app_name">
<activity android:name=".Notepadv1"
...
and the (package) path to the "main" (as it were) or ListActivity code is:
com.android.developer.notepad1
as you'd guess from the package statement.
In conclusion, I'm not so sure there has to be two levels of hierarchy,
the error would seem to say so (my projects all have full corporate
hierarchy anyway), but whatever the case, surely the Java file
containing the ListActivity class extension must be in the package noted
in AndroidManifest.xml.
I hope this helps. I don't do Android anymore and this is beginning to
stretch my memory.
Best regards,
Russ Bateman
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10431 seconds