Здравствуйте, ребята, я сделал приложение в первую очередь для моего android мобильного телефона, но это при установке на моем android телевизоре, поэтому я получаю сообщение об ошибке, и оно не работает на моем android телевизоре, но это приложение отлично отлично работает на моем мобильном телефоне, как я могу запустить свое приложение на android тв любом предложении, пожалуйста, ребята, помогите мне \ моя версия телевизора android - 4.4.2, а моя мобильная android версия - 9 Спасибо.
вот манифест моего приложения
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.oxoo.spagreen"
tools:ignore="MissingLeanbackLauncher">
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
<application
android:name=".utils.MyAppClass"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true"
android:screenOrientation="landscape"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name=".WebViewActivity"
android:screenOrientation="landscape"
android:theme="@style/FullscreenTheme"></activity>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-8804184340526788~7833821786" />
<meta-data
android:name="com.onesignal.NotificationOpened.DEFAULT"
android:value="DISABLE" />
<meta-data
android:name="com.google.android.gms.cast.framework.OPTIONS_PROVIDER_CLASS_NAME"
android:value="com.google.android.exoplayer2.ext.cast.DefaultCastOptionsProvider" />
<activity
android:name=".TermsActivity"
android:screenOrientation="landscape"
android:theme="@style/AppTheme.Nobar" />
<activity
android:name=".ReplyActivity"
android:label="@string/title_activity_reply"
android:screenOrientation="landscape"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".ProfileActivity"
android:screenOrientation="landscape"
android:theme="@style/AppTheme.Nobar" />
<activity
android:name=".PassResetActivity"
android:screenOrientation="landscape"
android:theme="@style/AppTheme.Nobar" />
<activity
android:name=".SearchActivity"
android:screenOrientation="landscape"
android:theme="@style/AppTheme.Nobar" />
<activity
android:name=".SignUpActivity"
android:screenOrientation="landscape"
android:theme="@style/AppTheme.Nobar" />
<activity
android:name=".LoginActivity"
android:screenOrientation="landscape"
android:theme="@style/AppTheme.Nobar" />
<activity
android:name=".DetailsActivity"
android:configChanges="screenLayout|screenSize|orientation"
android:label="@string/title_activity_details"
android:screenOrientation="landscape"
android:theme="@style/AppTheme.NoActionBar" /> <!-- android:configChanges="screenLayout|screenSize|orientation" -->
<activity
android:name=".MainActivity"
android:theme="@style/AppTheme.Nobar"
android:screenOrientation="landscape"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".SettingsActivity"
android:screenOrientation="landscape"
android:theme="@style/AppTheme.Nobar" />
<activity
android:name=".SplashscreenActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:screenOrientation="landscape"
android:theme="@style/FullscreenTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ItemMovieActivity"
android:label="@string/title_activity_item_show"
android:screenOrientation="landscape"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".ItemTVActivity"
android:screenOrientation="landscape"
android:theme="@style/AppTheme.Nobar" />
<activity
android:name=".ItemSeriesActivity"
android:screenOrientation="landscape"
android:theme="@style/AppTheme.Nobar" />
</application>
</manifest>
and here is the build.gradle of my app
buildscript {
repositories {
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.12.1'
}
}
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
repositories {
maven { url 'https://maven.google.com' }
}
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.oxoo.spagreen"
minSdkVersion 14
targetSdkVersion 28
versionCode 13
versionName "1.1.3"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
manifestPlaceholders = [
onesignal_app_id: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX',
// Project number pulled from dashboard, local value is ignored.
onesignal_google_project_number: 'REMOTE'
]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.firebase:firebase-core:16.0.8'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0-beta01'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-beta01'
implementation 'com.google.android.material:material:1.1.0-alpha06'
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0-beta01'
implementation 'androidx.browser:browser:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0-alpha05'
implementation 'com.facebook.shimmer:shimmer:0.4.0'
implementation 'com.balysv:material-ripple:1.0.2' // ripple effect
implementation 'com.github.JakeWharton:ViewPagerIndicator:2.4.1'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.android.volley:volley:1.1.1'
// retrofit
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.1'
implementation 'com.google.android:flexbox:0.3.2'
implementation 'com.onesignal:OneSignal:3.10.5'
implementation 'com.hootsuite.android:nachos:1.1.1'
implementation 'com.mikhaellopez:circularimageview:3.2.0'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'com.google.android.gms:play-services-ads:17.2.0'
implementation 'com.google.android.exoplayer:exoplayer-core:2.7.3'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.7.3'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.7.3'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.7.3'
implementation 'com.google.android.exoplayer:extension-rtmp:2.7.3'
implementation 'com.google.android.exoplayer:extension-cast:2.7.3'
implementation 'com.github.HaarigerHarald:android-youtubeExtractor:master-SNAPSHOT'
implementation 'com.google.android.libraries.cast.companionlibrary:ccl:2.8.4'
implementation 'com.github.ixiDev:GDPRChecker:v0.2'
implementation 'com.google.android.ads.consent:consent-library:1.0.7'
}