Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i run android comaptibity package samples

Tags:

android

I want to run the samples given in android compatibility package v4. I imported the project into eclipse but i get the following error com.example.android.supportv4.R cannot be resolved. How do i run the samples given

like image 367
user866821 Avatar asked Aug 21 '11 04:08

user866821


People also ask

How do I run Android apps in compatibility mode?

Open your device's Settings app and navigate to System > Advanced > Developer options > App Compatibility Changes. Select your app from the list. From the list of changes, find the change that you want to toggle on or off and tap the switch.

How do I test a .AAB file?

Building on Android Studio Step 1: Go to Android Studio -> Build ->Generate Signed Bundle. Select Android App Bundle on the pop screen and select Next. Step 2: Enter the KeyStore path where the KeyStore is stored or Create a new KeyStore as seen below. Step 4: Select the release mode from the list and select finish.


2 Answers

For some reason, it wasn't enough for me to just set target=android-13. Moved all the ./src files away, then commented out service android:name=".content.LocalServiceBroadcaster$LocalService" android:stopWithTask="true" tag in the manifest, and R got generated. Moved sources back, they compiled. android:stopWithTask didn't get recognized, though.

like image 136
vt. Avatar answered Sep 28 '22 04:09

vt.


You should make sure that the Target SDK is level 13. Once you target that, the resources get included.

like image 43
Eric Novins Avatar answered Sep 28 '22 06:09

Eric Novins