Can't upload my .apk to the market - minSdkVersion error every time.

by Savgrr » Thu, 29 Apr 2010 07:15:20 GMT


Sponsored Links
 Hi all, I am desperately looking for help with this! I've found many
other forums on the subject but none of the suggestions ever help!

I wrote a basic soundboard app, and it runs fine there's nothing wrong
with it. I want to upload it to the Market, but every time I try I get
an error message:

Market requires the minSdkVersion to be set to a positive 32-bit
integer in AndroidManifest.xml

That is already in there, I'm using 1.5 so I have my minSdkVersion set
at 3. I don't understand what the problem is, and I've asked a lot of
devs that never know what to tell me. I don't want to use a different
platform because my phone currently uses 1.5. Others have suggested
putting the <uses-sdk> line under the <manifest> line, but that hasn't
helped at all. Here is what my manifest looks like:

<?xml version="1.0" encoding="utf-8" ?>
- <manifest xmlns:android=" http://schemas.android.com/apk/res/android" ;
package="com.sav.soundboard" android:versionName="1.0"
android:versionCode="1">
- <application android:icon="@drawable/icon" android:label="@string/
app_name">
- <activity android:name=".Soundboard" android:label="@string/
app_name">
- <intent-filter>
  <action android:name="android.intent.action.MAIN" />
  <category android:name="android.intent.category.LAUNCHER" />

  </intent-filter>
  </activity>
  </application>
 <uses-sdk android:minSdkVersion="3" />
 </manifest>



Does anyone know how to fix this??

--



Can't upload my .apk to the market - minSdkVersion error every time.

by Matt Hill » Thu, 29 Apr 2010 09:05:47 GMT


 Hi Savgrr.

Not sure if this is your problem, but perhaps add the
android:targetSdkVersion attribute to the uses-sdk node.

For more info, see: 
 http://developer.android.com/guide/appendix/api-levels.html #uses



>


Sponsored Links


Can't upload my .apk to the market - minSdkVersion error every time.

by Matt Hill » Thu, 29 Apr 2010 09:05:47 GMT


 Hi Savgrr.

I'm not sure if this is your problem but perhaps add the
android:targetSdkVersion attribute to your uses-sdk node.

For more info, see: 
 http://developer.android.com/guide/appendix/api-levels.html #uses



>



Can't upload my .apk to the market - minSdkVersion error every time.

by Savgrr » Mon, 03 May 2010 07:14:53 GMT


 I tried to add the android:targetSdkVersion attribute and I got an
error msg that said

 'No resource identifier found for attribute 'targetSdkVersion' in
package 'android'

Does that make sense? I am so frustrated. The app works great it just
won't upload onto the Market. Is there a way to just bypass it?




> >



Can't upload my .apk to the market - minSdkVersion error every time.

by Lance Nanek » Mon, 03 May 2010 09:19:10 GMT


 gt;'No resource identifier found for attribute 'targetSdkVersion' in package 

This sort of error is usually from having a project build target lower
than when a feature was introduced. I think targetSdkVersion was added
in Android 1.6, for example, so you'd have to increase the project
build target to at least that in order to use it without an error.

No idea about your original error. Some random things you can check, I
guess: Those weird hyphens you posted in the XML aren't actually in
there, right? Your project build target is set to Android 1.5? You
have the latest ADT Eclipse plugin and latest SDK updates? You could
also try creating a new Android project, copying your old source files
and resources in, and redoing your manifest from the default one just
to be absolutely sure nothing is screwed up.

On May 2, 7:14pm, Savgrr <sav...@gmail.com> wrote:
> > >



Other Threads

1. Android SDK's parser vs Standard SDK's parser, was: SAXParseException: Illegal: ]]>

Ok,

I have a smaller test case now:

DocumentBuilder builder =
DocumentBuilderFactory.newInstance().newDocumentBuilder();
                        String in = "<category term=\"&lt;![CDATA[ Work in 
progress
]]>\"><test/></category>";
                        Document d = builder.parse(new InputSource(new 
StringReader(in)));
                        System.out.println("OK? => "
                                        + 
(d.getDocumentElement().getElementsByTagName("test").getLength() == 1));

  It works with the Standard SDK, but not on Android. The full code is
below this post.

  Standard SDK:
  mariano-kamps-macbook-pro:~ mkamp$
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java
-version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

  Result: OK? => true

  With Android:

W/System.err( 5135): org.xml.sax.SAXParseException: Illegal: ]]>
(position:START_TAG <category term='null'>@1:49 in
java.io.stringrea...@433eee78)
W/System.err( 5135):    at
org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:151)
W/System.err( 5135):    at test.xml.TestActivity.onCreate(TestActivity.java:23)
W/System.err( 5135):    at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122)
W/System.err( 5135):    at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2103)
W/System.err( 5135):    at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2156)
W/System.err( 5135):    at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
W/System.err( 5135):    at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580)
W/System.err( 5135):    at android.os.Handler.dispatchMessage(Handler.java:88)
W/System.err( 5135):    at android.os.Looper.loop(Looper.java:123)
W/System.err( 5135):    at
android.app.ActivityThread.main(ActivityThread.java:3742)
W/System.err( 5135):    at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 5135):    at java.lang.reflect.Method.invoke(Method.java:515)
W/System.err( 5135):    at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
W/System.err( 5135):    at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
W/System.err( 5135):    at dalvik.system.NativeStart.main(Native Method)
I/ActivityManager(   58): Displayed activity test.xml/.TestActivity: 537 ms

Cheers,
Mariano

Full code goes here.

Standard SDK:

import java.io.StringReader;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.w3c.dom.Document;
import org.xml.sax.InputSource;

public class Test {

        public static void main(String[] args) throws Exception {
                try {
                        DocumentBuilder builder =
DocumentBuilderFactory.newInstance().newDocumentBuilder();
                        String in = "<category term=\"&lt;![CDATA[ Work in 
progress
]]>\"><test/></category>";
                        Document d = builder.parse(new InputSource(new 
StringReader(in)));
                        System.out.println("OK? => "
                                        + 
(d.getDocumentElement().getElementsByTagName("test").getLength() == 1));

                } catch (Exception e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }
        }
}


Android:

package test.xml;

import java.io.StringReader;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.w3c.dom.Document;
import org.xml.sax.InputSource;

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

public class TestActivity extends Activity {
        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);
                try {
                        DocumentBuilder builder =
DocumentBuilderFactory.newInstance().newDocumentBuilder();
                        String in = "<category term=\"&lt;![CDATA[ Work in 
progress
]]>\"><test/></category>";
                        Document d = builder.parse(new InputSource(new 
StringReader(in)));
                        System.out.println("OK? => "
                                        + 
(d.getDocumentElement().getElementsByTagName("test").getLength() == 1));

                } catch (Exception e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }
        }
}









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

2. ConditionVariable Usage

Hi,

I'm trying to use a ConditionVariable to control the execution
sequence of two threads. I can create a ConditionVariable in one
thread and block on it. But I would like to be able to access it from
another Thread  and unblock it from that thread.. ?

   Blocked Thread i am planning to keep as GUI thread and it should
update the messages which are sent by b/g thread on the screen during
its block state and will be unblocked by b/g thread in the end by
calling open(); method.

  Can you please the proper way to accomplish this??

Thanks,
Asif
--~--~---------~--~----~------------~-------~--~----~

3. SAXParseException: Illegal: ]]>

4. How can I use mp3 file's cover image?

5. Why corsor need to call setNotificationUri when query from content provider?

6. java.lang.reflect.InvocationTargetException during calling a function of another application at runtime

7. Frequent loss of data connections.