é話ã»é ä¿¡SDK
Android
以ä¸ã®å ¬å¼ããã¥ã¡ã³ãããåèãã ããã
ç°å¢
Android Studio 2.0以ä¸
Android4.1以ä¸ã®å®æ©
Android API level 16以ä¸
STEP1ï¼Agora Accountã®ä½æã¨App IDã®åå¾
1ï¼https://sso.agora.io/signup?source_id=3 ãããããããã¼ç»é²ããã¾ãã
2ï¼ããã·ã¥ãã¼ãããæ°è¦ããã¸ã§ã¯ããä½æãã¾ãã
3ï¼ããã¸ã§ã¯ãåãå ¥åãã¦Submitãã¿ã³ãã¯ãªãã¯ãã¾ãã
4ï¼ä½æããããã¸ã§ã¯ããä¸è¦§ã«è¡¨ç¤ºããã¾ãã
STEP2ï¼Agora Android SDKã®åãè¾¼ã¿
Case1ï¼JCenterçµç±
1ï¼ä½æããããã¸ã§ã¯ãã®app/build.gradleã«AgoraSDKã®åç §ã追è¨
compile 'io.agora.rtc:full-sdk:2.3.1'
2ï¼Sync Project With Gradle Filesãã¯ãªãã¯
Case2ï¼SDKãã¡ã¤ã«ãåå¾
1ï¼ãã¦ã³ãã¼ããã¼ã¸ããAndroid VideoSDKããã¦ã³ãã¼ãããlibsãã©ã«ããããã¸ã§ã¯ãå ã«ã³ãã¼ãã¾ãã
2ï¼AndroidStudioã§ããã¸ã§ã¯ããéããapp/src/main/build.gradleãã¡ã¤ã«ã«sourceSetsã¨fileTreeã追è¨ãã¾ã
3ï¼Sync Project With Gradle Filesãã¯ãªãã¯
STEP3ï¼Android NDKã®è¨å®
Android Studioã®Project StructureããAndroid NDKããã¦ã³ãã¼ããã¾ã
ãã¦ã³ãã¼ããå®äºãããèªåã§NDKã®ãã¹ã追å ããã¾ã
STEP4ï¼ã«ã¡ã©/ãã¤ã¯ã®è¨å®
ã«ã¡ã©/ãã¤ã¯ã®å©ç¨ã許å¯ããçºãAndroidManifest.xmlãä¿®æ£ãã¾ã
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.agora.tutorials1v1acall">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- If the app uses Bluetooth, please add Bluetooth permissions.-->
<uses-permission android:name="android.permission.BLUETOOTH" />
...
</manifest>
ãã®ä»ã®è¨å®
é£èªåã®è¨å®ã¯proguard-rules.proã«ä»¥ä¸ã®å 容ã追è¨ãã¾ã
-keep class io.agora.**{*;}
å®è£
SDKã«å å ããã¦ãããµã³ãã«ããAPIããã¥ã¡ã³ããåèã«å®è£ ãéå§ãã¾ãã