目前需要使用Android Studio 2.4 canary,下載地址:https://developer.android.com/studio/preview/index.html
下載鏈接(可使用迅雷下載):https://dl.google.com/dl/android/studio/ide-zips/2.4.0.2/android-studio-ide-171.3829324-windows.zip
Select the latest canary download
|
然後打開SDK Manager下載對應的文件(用於開發和運行虛擬機)
System Image文件下載(用於刷機):https://developer.android.com/preview/download.html
Download a system image for Developer Preview 1.
|
修改App的build configuration文件:
我們不能發佈帶此configuration文件的app。 Update and the Support Library version with the following versions: android { compileSdkVersion 'android-O' buildToolsVersion '26.0.0-rc1' defaultConfig { targetSdkVersion 'O' } ... } dependencies { compile 'com.android.support:appcompat-v7:26.0.0-alpha1' } |
目前無論那個level的API都支持下面的Broadcast:https://developer.android.com/preview/features/background-broadcasts.html
API 25 -> API O 的diff:https://developer.android.com/sdk/api_diff/o-dp1/changes.html