Error on AndroidManifest.xml..

by ritter.han » Thu, 05 Feb 2009 00:24:29 GMT


Sponsored Links
 Hi, all.

  I'm trying to build the full Cupcake source code,
  And succeeded on my local Linux box.
  But once I copy the same source code to the remote server (Linux
based server)
  it returns the error like as below.

  target R.java/Manifest.java: Development (out/target/common/obj/APPS/
Development_intermediates/src/R.stamp)
  development/apps/Development/AndroidManifest.xml: 74: ERROR Error:
String types not allowed (at 'configChanges' with value 'keyboard|
keyboardHidden|navigation|orientation').
  make: *** [out/target/common/obj/APPS/Development_intermediates/src/
R.stamp] Error 1

  I tried ro delete out folder and 'make clean' also, but failed.

  Please tell me why the same source code return the error like the
above only in the remote server.
  Again, the smae one had been built on my local Linux box (Ubuntu).

  Thanks in advance.
  Shwan.


--~--~---------~--~----~------------~-------~--~----~



Error on AndroidManifest.xml..

by Chronos » Wed, 11 Feb 2009 23:54:28 GMT


 I have the same problem on my current project: Code that is perfectly
valid reports the above error. I first thought it to be some kind of
eclipse integration bug - but if you state, you have this problem on a
remote machine (which you probably do not run eclipse on), I am pretty
sure this is a bug in the SDK.

My temporary solution is: just insert some blank lines, a comment or
something equivalent. The code won't report bugs thereafter (if you're
lucky). Sometimes it even helps to do a clean build. But I find the
frequency of the error rising with the amount of XML in my project.

This is really annoying and frustrating :(. Especially if you're
designing in XML - today I spent about 25% of my time with this bug...
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Error on AndroidManifest.xml..

by PeteT » Sat, 14 Mar 2009 02:09:53 GMT


 We see this exact same error on a number of systems as well, but
interestingly not on all systems.  Interestingly, we've found that if
we tweak the command line that is generating the error, we can
eliminate the error on all systems.  E.g. on machines which exhibit
the problem, if we run:

p...@android5:$ ./out/host/linux-x86/bin/aapt package  -m -z  -J out/
target/common/obj/APPS/Development_intermediates/src -M development/
apps/Development/AndroidManifest.xml -P out/target/common/obj/APPS/
Development_intermediates/public_resources.xml -S development/apps/
Development/res  -I out/target/common/obj/APPS/framework-
res_intermediates/package-export.apk

Then, we get the error below:
development/apps/Development/AndroidManifest.xml:74: ERROR Error:
String types not allowed (at 'configChanges' with value 'keyboard|
keyboardHidden|navigation|orientation').

However, if we tweak the final argument in the above command line by
pre-pending "../OSP/", as follows:

p...@android5:$ ./out/host/linux-x86/bin/aapt package  -m -z  -J out/
target/common/obj/APPS/Development_intermediates/src -M development/
apps/Development/AndroidManifest.xml -P out/target/common/obj/APPS/
Development_intermediates/public_resources.xml -S development/apps/
Development/res  -I ../OSP/out/target/common/obj/APPS/framework-
res_intermediates/package-export.apk

We do not see the error.   Very odd.   Maybe someone at Google has a
idea?

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. TextView looks great, but drawText() looks crummy !

If you look closely at a TextView, you will see that it is clean and
clear because it uses half-tone shading to avoid that pixelated look.
But in my custom view I am calling drawText, and the results are not
as good.  The stuff drawn with drawText looks a bit ragged because it
does not use any half-tone shading.  Every pixel is either completely
black or completely white.  How can I get Canvas.drawText() to look as
good as the text in a TextView?

-- 

2. SOAP response : URL data causes error

import java.util.ArrayList;
import java.util.List;

import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class Cylexwebservice extends Activity {

        private static final String SOAP_ACTION = "http://tempuri.org/
FetchCompanyData";
        private static final String METHOD_NAME = "FetchCompanyData";
        private static final String NAMESPACE = "http://tempuri.org/";
        private static final String URL = "http://example.com/service.asmx";

        TextView tv;
        @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

    tv = (TextView)findViewById(R.id.txtCompName);

    SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME);
    Request.addProperty("companyname","MicroCrash");
    Request.addProperty("country","United States");
    Request.addProperty("zipcode","");

    SoapSerializationEnvelope SoapEnv = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
    SoapEnv.dotNet = true;
    SoapEnv.setOutputSoapObject(Request);

    HttpTransportSE aht = new HttpTransportSE(URL);

    try
    {
        aht.call(SOAP_ACTION, SoapEnv);

        SoapObject resultString = (SoapObject)SoapEnv.getResponse();
        SoapObject details =
(SoapObject)resultString.getProperty("diffgram");
        List<CharSequence> list = new
ArrayList<CharSequence>(details.getPropertyCount());

        int detailPropertycount = details.getPropertyCount();
        for (int i = 0; i < detailPropertycount ; i++) {
            Object property = details.getProperty(i);

            if (property instanceof SoapObject) {
                SoapObject compdetail = (SoapObject) property;
                String table =
compdetail.getProperty("Table").toString();

                int compPropCount = compdetail.getPropertyCount();

                for(int j=0;j<compPropCount;j++)
                {
                        Object CompProperties = compdetail.getProperty(j);

                        if(CompProperties instanceof SoapObject)
                        {
                                SoapObject CompInfo = (SoapObject) 
CompProperties;
                                String information =
CompInfo.getProperty("COMPANY_NAME").toString();
                                String teleinformation =
CompInfo.getProperty("COMPANY_PHONE").toString();
                                String urlinformation =
CompInfo.getProperty("COMPANY_URL").toString();

                                list.add("\nResult:"+j+"\nCompany Name:" +
information
                                                + "\nTelephone:" + 
Teleinformation
                                                + "\nAddress:" + 
urlinformation);
                        }
                }
            }
        }
        tv.setText(list.toString());

    }
    catch(Exception err)
    {
        tv.setText("Some error occured!" + err.getMessage());
    }
    }
}

-- 
.

3. Layout sizes not determined when I need them

4. ListView Divider not showing when color changed

5. Google Maps "heat map" type overlay?

6. Accelerometer sensor keep on generating events

7. Setting proxy di galaxy ace