Академический Документы
Профессиональный Документы
Культура Документы
5 ==============================
1. Update to newest Android studio 3.5.2
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.google.gms:google-services:4.3.2'
to
classpath 'com.android.tools.build:gradle:3.5.2'
classpath 'com.google.gms:google-services:4.3.3'
this is default color and default end color when you install app in the first time,
let change this color to adapt your app
2. Open file local.properties and delete the line which starting with "ndk.dir="
ndk.dir=/Volumes/Data/AndroidTools/adt-bundle-mac-x86_64/sdk/ndk-bundle
to
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.google.gms:google-services:4.3.2'
implementation 'com.google.android.exoplayer:exoplayer-core:2.9.3'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.9.3'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.9.3'
to
implementation 'com.google.android.exoplayer:exoplayer-core:2.10.4'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.10.4'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.10.4'
4. Open 5 folders, let replace xradio icon to be your icons but you NEED to KEEP
Name and size of icons. Also you need to keep format (including transparent or
shape of icon). We are having 2 icons in each folder, one is square with border
corner, and two is circle. You need to keep the same format as my icon. It will
help your app to have Adaptive Icon and your icon app will be very beautiful on
every device.
android:icon="@drawable/ic_launcher"
let change it to be
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
//true if you just want to use the in-app webview when you click link in the
application
boolean USE_INTERNAL_WEB_BROWSER = false;
Please change it to be
classpath 'com.google.gms:google-services:4.3.0'
3. Go to app/build.gradle
change
implementation 'com.facebook.android:audience-network-sdk:5.+'
to
implementation 'com.facebook.android:audience-network-sdk:5.4.1'
4. Go to app/build.gralde also
Change library of ads
implementation 'com.google.android.gms:play-services-ads:17.2.0'
implementation 'com.google.android.gms:play-services-gcm:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.google.firebase:firebase-messaging:18.0.0'
to
implementation 'com.google.android.gms:play-services-ads:18.0.0'
implementation 'com.google.android.gms:play-services-gcm:17.0.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.google.firebase:firebase-core:17.0.0'
implementation 'com.google.firebase:firebase-messaging:19.0.1'
3. Go to app/build.gradle
change
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-messaging:17.5.0'
implementation 'com.facebook.android:audience-network-sdk:5.1.0'
implementation 'com.squareup.okhttp3:okhttp:3.8.0'
to
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.google.firebase:firebase-messaging:18.0.0'
implementation 'com.facebook.android:audience-network-sdk:5.+'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
int UI_HIDDEN= 0;
#jsoup
-dontwarn org.jsoup.**
-keep class org.jsoup.** {*;}
NOTE: If you have bought iTunes cover Files from us, please skip this step
because
itunes is very good.
change
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'com.jakewharton:butterknife-gradle-plugin:10.0.0'
to
classpath 'com.android.tools.build:gradle:3.4.0'
classpath 'com.jakewharton:butterknife-gradle-plugin:10.1.0'
3. Open app/build.gradle
Change
implementation 'com.jakewharton:butterknife:10.0.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
to
implementation 'com.jakewharton:butterknife:10.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
For examples:
public static final boolean USE_BLUR_EFFECT = true;
will change to
boolean USE_BLUR_EFFECT = true;
For examples:
public static final String KEY_VALUE = "value";
will change to
String KEY_VALUE = "value";
8. Open app/build.gradle
and Change :
implementation 'com.google.android.exoplayer:exoplayer-core:2.8.4'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.8.4'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.8.4'
to
implementation 'com.google.android.exoplayer:exoplayer-core:2.9.3'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.9.3'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.9.3'
And go to Android Studio, open all files in this shoutcast folder which you just
copied and change com.ypyglobal.xradio to your package name
let change:
implementation 'com.google.android.gms:play-services-ads:17.1.2'
implementation 'com.google.android.gms:play-services-gcm:16.0.0'
to
implementation 'com.google.android.gms:play-services-ads:17.2.0'
implementation 'com.google.android.gms:play-services-gcm:16.1.0'
Let change
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
to
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-messaging:17.5.0'
===================================Version 2.8================================
Update for Android Studio
1. open AndroidManifest.xml, let add this line
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
below the line
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
6. copy and replace the new config.json in assets folder to your assets folder and
update to your config. We will have new config param it is publisher_id in admob
ads type which you can find in your admod account
IF YOU DONT UNDERSTAND, PLEASE SEE MY FILE ON NEWEST CODE TO SEE HOW TO EDIT