發表文章

目前顯示的是 10月, 2020的文章

Android 10 open failed: EACCES (Permission denied)

圖片
 android targetSdkVersion 29 29後開始save data to download資料夾會有問題喔~ 快速解法: out of scoped storage If your app is not ready for the changes that are coming in for Android 10 then you can 「opt-out」 by setting the flag requestLegacyExternalStorage to true in your manifest. <manifest ... >   <application android:requestLegacyExternalStorage="true" ... > ... </application>   </manifest>   設定完之後: 就解了!  以上是快速解法,若想使用完整正確android 10的方法, 請參考: https://medium.com/@sriramaripirala/android-10-open-failed-eacces-permission-denied-da8b630a89df    

app bundle and bundletool. 關於aab安裝問題

圖片
google 有說明年開始強制使用app bundle. 不然不准更新app. 但是產出的apk不再是apk了,而是aab. C:\release>adb install 6.aab Performing Streamed Install adb.exe: filename doesn't end .apk or .apex: 6.aab   不能透過adb install.... so, google 發表一個新tool: 去download bundletool...因為是java跨平台都可執行. https://github.com/google/bundletool/releases   You can extract the apks files from the aab file using the bundletool command. https://developer.android.com/studio/command-line/bundletool To generate an APK set for all device configurations (signed with a debug key) you can use:  bundletool build-apks --bundle=/MyApp/my_app.aab --output=/MyApp/my_app.apks To deploy your app from an APK set, use the install-apks  bundletool install-apks --apks=/MyApp/my_app.apks test:   C:\release>java -jar bundletool.jar build-apks --bundle=6.aab --output=out_6.apks INFO: The APKs will be signed with the debug keystore found at 'C:\Users\mark\.android\debug.keystore'.   還是失敗,還要指定key才可以...  For Release apk command, example 1: bundle

app DAU

圖片
What is DAU?  Daily Active Users (DAU) measures the number of active users who visit your app in a single day.  每日啟動並使用APP的不重複USER數量. 很重要. 在Firebase 控制台可看到.   像上圖,就是這3個app總數DAU=1013人.     What is MAU?  Monthly Active Users (MAU) measures the number of unique users to your app over a 30-day period.   每月啟動且不重複user, 這個我就不知在哪裡看了...     但是DAU非常重要, 台灣2300萬人,如果DAU只是不到10000人,那真的很難看.