installLocation error?

susu

Well-Known Member
Licensed User
Longtime User
I just installed B4A to my new laptop, when I tried to compile old app, I got this error:


B4X:
Compiling code.                         0.01
Generating R file.                      Error
AndroidManifest.xml:2: error: No resource identifier found for attribute 'installLocation' in package 'android'

AndroidManifes.xml file as below:
B4X:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="aa.aa.aa"
      android:versionCode="1"
      android:versionName=""
     android:installLocation="preferExternal">
      <uses-sdk android:minSdkVersion="4" />
      <supports-screens
          android:largeScreens="true"
          android:normalScreens="true"
          android:smallScreens="true"
          android:anyDensity="true"/>
    <application android:icon="@drawable/icon" android:label="aaa">
       
        <activity android:name=".main"
                  android:label="aaa" android:screenOrientation="unspecified">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        

    </application>
   

</manifest>

What's wrong here? :sign0085:
 

susu

Well-Known Member
Licensed User
Longtime User
I just realized that I select the wrong path of android.jar. It must be folder "android-8" not "android-7". Sorry for my bad :D
 
Upvote 0

anuj0sharma

Member
Licensed User
Longtime User
InstallLocation error

I just realized that I select the wrong path of android.jar. It must be folder "android-8" not "android-7". Sorry for my bad :D

hello, :sign0085:
I am also getting the similar type of error.

Compiling code. 0.06
Generating R file. Error
AndroidManifest.xml:2: error: No resource identifier found for attribute 'installLocation' in package 'android'

I have two SDK installed. 1.6 API4 and 2.2 API8
there is no problem with 2.2 API8 but 1.6 API4 does not compile any code. not even a template code of the new project.

the only change i've made is in tools>configure path > "path of android.jar file"
I've chosen path of android-4 folder instead of android-8.

guess i am missing something basic...
 
Upvote 0

anuj0sharma

Member
Licensed User
Longtime User
You must always compile using Android-8 otherwise it will fail. The resulting program will run on Android 1.6 or later.

Hello Andrew,
Thanks for the reply.
Do u mean to say if I use latest SDK, lets say Android 3.0 API11, I'll be able to runt the developed apps on android-1.5/1.6 and need not to install the SDK for 1.5/1.6?

Kindly tell me more..the reason i was trying to work with android-4 coz, android-8 apss didnt install on android-4 for me.
 
Upvote 0

anuj0sharma

Member
Licensed User
Longtime User
You need to use android-8 during compilation. The result APK file will run correctly on Android 1.6 and above.

thanks Erel,
still the doubt remains there..what if i am using android-9 or above for compilation. will it be compatible for 1.6 and above. or only android-8 has to be used.

is it that the latest sdk has support for all the lower versions.??
 
Upvote 0
Top