Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Reply
Highlighted
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel
Accepted Solution

Today I newly imported a android project into my workspace in android eclipse 4.2.2 Then when I run the application It is showing Eroor:Unable to resolve target 'android-7' tru Unknown Android Target Problem

[ Edited ]

 

 

 

Eclipse SDK

Version: 4.2.2
Build id: M20130204-1200

 

 

When I right click on the application and clcik as Run as Android application Iam seeing following errors':-

 

Description Resource Path Location Type
Permission is only granted to system apps AndroidManifest.xml /tru line 20 Android Lint Problem

 

 

Description Resource Path Location Type
Permission is only granted to system apps AndroidManifest.xml /tru line 20 Android Lint Problem

 

 

Description Resource Path Location Type
Unable to resolve target 'android-7' tru Unknown Android Target Problem

 

whose AndroidManifest.xml is like as below:

 

 

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tru"
android:versionName="3.47" android:versionCode="073434">

<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="7" android:maxSdkVersion="8"/>

<uses-feature android:name="android.hardware.telephony"/>
<uses-feature android:name="android.hardware.touchscreen"/>


<supports-screens android:resizeable="true" android:smallScreens="true" android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SET_ORIENTATION" />    Error :  permission is only granted to system apps
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />

 

 

 

 

Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: Today I newly imported a android project into my workspace in android eclipse 4.2.2 Then when I run the application It is showing Eroor:Unable to resolve target 'android-7' tru Unknown Android Target Problem

Hey srk2012,

 

For the first error, "Unabled ot resolve target 'android-7", it means that you do not have Android SDK7 installed. You can get it by opening the SDK Manager and selecting Android 2.1 (API 7).

 

The error, "Permission is only granted to system apps" is well explained here: http://stackoverflow.com/questions/13597125/permission-is-only-granted-to-system-app-in-manifest

 

   Justin

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Developer
Posts: 140
Registered: ‎07-24-2012
My Device: Blackberry Z10 LE, Q10 And PlayBook
My Carrier: Vodafone

Re: Today I newly imported a android project into my workspace in android eclipse 4.2.2 Then when I run the application It is showing Eroor:Unable to resolve target 'android-7' tru Unknown Android Target Problem

A number of Android app permissions are not supported. The impact of these unsupported features varies.

Check this link and verify which all Permission are allowed while porting the app .. if Permission which your app is asking in the Right list you might need to make some changes in your app

https://developer.blackberry.com/playbook/android/apisupport/unsupportedapi_playbook_app_permissions...

Hit Like if you find my post Use Full Thank You...
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: Today I newly imported a android project into my workspace in android eclipse 4.2.2 Then when I run the application It is showing Eroor:Unable to resolve target 'android-7' tru Unknown Android Target Problem

Can you please reply to my other query posted realted to Ported Android app

 

 

 

http://supportforums.blackberry.com/t5/Android-Runtime-Development/After-porting-my-android-app-to-B...

 

 

 

Thanks