質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Cordova

Cordovaは様々なデバイスで使うことができるオープンソースなモバイル用開発プラットフォームです。開発者に各デバイスの元のプラットフォームで開発する必要をなくし、HTML・JavaScript・CSSなどの一般的なウェブのテクノロジーを使ってすべてのデバイスで展開することができるモバイルのアプリケーションを生成することを可能にします。

Android

Androidは、Google社が開発したスマートフォンやタブレットなど携帯端末向けのプラットフォームです。 カーネル・ミドルウェア・ユーザーインターフェイス・ウェブブラウザ・電話帳などのアプリケーションやソフトウェアをひとつにまとめて構成。 カーネル・ライブラリ・ランタイムはほとんどがC言語/C++、アプリケーションなどはJavaSEのサブセットとAndroid環境で書かれています。

Monaca

「Monaca」はiOS、Android、Windows向けのアプリ開発に対応した、Cordovaベースのモバイルアプリ開発プラットフォームです。HTML5、JavaScriptといったWeb標準技術を用いてモバイルアプリ開発を行うことができます。

Q&A

解決済

1回答

744閲覧

monacaでビルドしたandroidアプリを起動時にindex.htmlが呼ばれず困ってます。

huckepain

総合スコア14

Cordova

Cordovaは様々なデバイスで使うことができるオープンソースなモバイル用開発プラットフォームです。開発者に各デバイスの元のプラットフォームで開発する必要をなくし、HTML・JavaScript・CSSなどの一般的なウェブのテクノロジーを使ってすべてのデバイスで展開することができるモバイルのアプリケーションを生成することを可能にします。

Android

Androidは、Google社が開発したスマートフォンやタブレットなど携帯端末向けのプラットフォームです。 カーネル・ミドルウェア・ユーザーインターフェイス・ウェブブラウザ・電話帳などのアプリケーションやソフトウェアをひとつにまとめて構成。 カーネル・ライブラリ・ランタイムはほとんどがC言語/C++、アプリケーションなどはJavaSEのサブセットとAndroid環境で書かれています。

Monaca

「Monaca」はiOS、Android、Windows向けのアプリ開発に対応した、Cordovaベースのモバイルアプリ開発プラットフォームです。HTML5、JavaScriptといったWeb標準技術を用いてモバイルアプリ開発を行うことができます。

0グッド

1クリップ

投稿2019/02/26 08:10

以下の設定でビルドをしておりますが、ビルドは成功しています。
ただ、Android5では表示できるのですが、
Android6以上の場合に真っ白な画面で、index.htmlが呼ばれていない状態となっております。
原因がわからず困っています。

cordova version:7.1.0
↓追加しているplugin(package.json)

json

1{ 2 "name": "aaaaaa", 3 "cordova": { 4 "plugins": { 5 "monaca-plugin-monaca-core": {}, 6 "cordova-plugin-whitelist": {}, 7 "cordova-plugin-splashscreen": {}, 8 "cordova-custom-config": {}, 9 "cordova-plugin-globalization": {}, 10 "cordova-plugin-inappbrowser": {}, 11 "cordova-plugin-device": {}, 12 "cordova-plugin-file": {}, 13 "cordova-plugin-file-transfer": {}, 14 "cordova-plugin-media": {}, 15 "cordova-plugin-statusbar": {}, 16 "cordova-plugin-geolocation": {}, 17 "cordova-plugin-network-information": {}, 18 "br.com.brunogrossi.MediaScannerPlugin": {}, 19 "cordova-plugin-add-swift-support": {}, 20 "cordova-plugin-android-permissions": {}, 21 "cordova-plugin-bluetooth-status": {}, 22 "cordova-plugin-x-socialsharing": {}, 23 "de.appplant.cordova.plugin.local-notification": {}, 24 "cordova-photo-library": {}, 25 "cordova-android-support-gradle-release": { 26 "ANDROID_SUPPORT_VERSION": "27.+" 27 }, 28 "com.wikitude.phonegap.WikitudePlugin": {}, 29 "cordova-android-play-services-gradle-release": { 30 "PLAY_SERVICES_VERSION": "11.8.0" 31 }, 32 "phonegap-plugin-push": {}, 33 "cordova-plugin-googlemaps": { 34 "API_KEY_FOR_ANDROID": "****", 35 "API_KEY_FOR_IOS": "******" 36 } 37 } 38 }, 39 "dependencies": { 40 "monaca-plugin-monaca-core": "3.2.0", 41 "cordova-plugin-whitelist": "1.3.3", 42 "cordova-plugin-splashscreen": "5.0.2", 43 "cordova-custom-config": "5.0.2", 44 "cordova-plugin-globalization": "1.0.9", 45 "cordova-plugin-inappbrowser": "2.0.1", 46 "cordova-plugin-device": "2.0.1", 47 "cordova-plugin-file": "5.0.0", 48 "cordova-plugin-file-transfer": "1.7.0", 49 "cordova-plugin-media": "4.0.0", 50 "cordova-plugin-statusbar": "2.4.1", 51 "cordova-plugin-geolocation": "4.0.1", 52 "cordova-plugin-network-information": "2.0.1", 53 "br.com.brunogrossi.MediaScannerPlugin": "file:plugins/br.com.brunogrossi.MediaScannerPlugin", ←version:0.1.3 54 "cordova-plugin-add-swift-support": "file:plugins/cordova-plugin-add-swift-support",←version:1.7.0 55 "cordova-plugin-android-permissions": "file:plugins/cordova-plugin-android-permissions",←version:0.11.0 56 "cordova-plugin-bluetooth-status": "file:plugins/cordova-plugin-bluetooth-status",←version:3.0.0 57 "cordova-plugin-x-socialsharing": "file:plugins/cordova-plugin-x-socialsharing",←version:5.1.7 58 "de.appplant.cordova.plugin.local-notification": "file:plugins/de.appplant.cordova.plugin.local-notification",←version:0.8.4 59 "cordova-photo-library": "file:plugins/cordova-photo-library",←version:1.1.4 60 "cordova-android-support-gradle-release": "file:plugins/cordova-android-support-gradle-release",←version:1.4.3 61 "com.wikitude.phonegap.WikitudePlugin": "file:plugins/com.wikitude.phonegap.WikitudePlugin", ←version:7.2.1 62 "cordova-android-play-services-gradle-release": "file:plugins/cordova-android-play-services-gradle-release", ←version:2.0.0 63 "phonegap-plugin-push": "file:plugins/phonegap-plugin-push",←version:2.1.3 64 "cordova-plugin-googlemaps": "file:plugins/cordova-plugin-googlemaps"←version:2.2.8 65 }, 66 "scripts": { 67 "monaca:preview": "npm run dev", 68 "dev": "browser-sync start -s www/ --watch --port 8080 --ui-port 8081" 69 }, 70 "devDependencies": { 71 "browser-sync": "^2.24.5", 72 "cordova": "^7.1.0" 73 } 74}

↓出力されるログ

log

102-26 17:02:52.743: D/FirebaseApp(8186): com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization. 202-26 17:02:52.748: D/FirebaseApp(8186): com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization. 302-26 17:02:52.763: I/FirebaseInitProvider(8186): FirebaseApp initialization successful 402-26 17:02:52.773: I/FA(8186): App measurement is starting up, version: 11910 502-26 17:02:52.774: I/FA(8186): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE 602-26 17:02:52.774: I/FA(8186): To enable faster debug mode event logging run: 702-26 17:02:52.774: I/FA(8186): adb shell setprop debug.firebase.analytics.app aaaaaa 802-26 17:02:52.788: I/CordovaLog(8186): Changing log level to DEBUG(3) 902-26 17:02:52.788: I/CordovaActivity(8186): Apache Cordova native platform version 6.4.0 is starting 1002-26 17:02:52.788: D/CordovaActivity(8186): CordovaActivity.onCreate() 1102-26 17:02:52.816: I/WebViewFactory(8186): Loading com.android.chrome version 72.0.3626.105 (code 362610552) 1202-26 17:02:52.888: I/cr_LibraryLoader(8186): Time to load native libraries: 7 ms (timestamps 6179-6186) 1302-26 17:02:52.913: I/chromium(8186): [INFO:library_loader_hooks.cc(42)] Chromium logging enabled: level = 0, default verbosity = 0 1402-26 17:02:52.914: I/cr_LibraryLoader(8186): Expected native library version number "72.0.3626.105", actual native library version number "72.0.3626.105" 1502-26 17:02:52.938: I/cr_BrowserStartup(8186): Initializing chromium process, singleProcess=true 1602-26 17:02:52.943: W/ResourceType(8186): Failure getting entry for 0x7f120538 (t=17 e=1336) (error -2147483647) 1702-26 17:02:53.086: D/SystemWebViewEngine(8186): CordovaWebView is running on device made by: Sony 1802-26 17:02:53.097: D/PluginManager(8186): init() 1902-26 17:02:53.106: W/WhitelistPlugin(8186): Found <access launch-external> within config.xml. Please use <allow-intent> instead. 2002-26 17:02:53.237: D/FileUtils(8186): Unrecognized extra filesystem identifier: assets 2102-26 17:02:53.240: I/CordovaLog(8186): Changing log level to 6 2202-26 17:02:53.243: D/GoogleMapsPlugin(8186): ----> checkGooglePlayServices = true 2302-26 17:02:53.244: E/MyPluginLayout(8186): --> zoomScale = 3.0 2402-26 17:02:53.252: I/zzbz(8186): Making Creator dynamically 2502-26 17:02:53.263: I/DynamiteModule(8186): Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:221 2602-26 17:02:53.263: I/DynamiteModule(8186): Selected remote version of com.google.android.gms.maps_dynamite, version >= 221 2702-26 17:02:53.273: W/System(8186): ClassLoader referenced unknown path: 2802-26 17:02:53.298: W/System(8186): ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/00000045/n/arm64-v8a 2902-26 17:02:53.343: I/Google Maps Android API(8186): Google Play services client version: 11910000 3002-26 17:02:53.368: E/libEGL(8186): validate_display:99 error 3008 (EGL_BAD_DISPLAY) 3102-26 17:02:53.368: I/Adreno(8186): QUALCOMM build : 065a07a, I3a33bf62a4 3202-26 17:02:53.368: I/Adreno(8186): Build Date : 12/06/16 3302-26 17:02:53.368: I/Adreno(8186): OpenGL ES Shader Compiler Version: XE031.09.00.03 3402-26 17:02:53.368: I/Adreno(8186): Local Branch : 3502-26 17:02:53.368: I/Adreno(8186): Remote Branch : quic/LA.BF64.1.2.3_rb1.7 3602-26 17:02:53.368: I/Adreno(8186): Remote Branch : NONE 3702-26 17:02:53.368: I/Adreno(8186): Reconstruct Branch : NOTHING 3802-26 17:02:53.390: I/FA(8186): Tag Manager is not found and thus will not be used 3902-26 17:02:53.449: W/VideoCapabilities(8186): Unrecognized profile 2130706433 for video/avc 4002-26 17:02:53.454: I/OpenGLRenderer(8186): Initialized EGL, version 1.4 4102-26 17:02:53.454: D/OpenGLRenderer(8186): Swap behavior 1 4202-26 17:02:53.472: W/VideoCapabilities(8186): Unrecognized profile/level 0/3 for video/mpeg2 4302-26 17:02:53.485: W/VideoCapabilities(8186): Unsupported mime video/mp4v-esdp 4402-26 17:02:53.503: I/VideoCapabilities(8186): Unsupported profile 4 for video/mp4v-es 4502-26 17:02:53.513: W/cr_CrashFileManager(8186): /data/user/0/aaaaaa/cache/WebView/Crash Reports does not exist or is not a directory 4602-26 17:02:53.576: I/art(8186): Starting a blocking GC Explicit 4702-26 17:02:53.612: I/art(8186): Explicit concurrent mark sweep GC freed 14047(880KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 14MB/24MB, paused 653us total 35.429ms 4802-26 17:02:53.626: I/Timeline(8186): Timeline: Activity_idle id: android.os.BinderProxy@579a863 time:5206925 49

↓config.xml(androidの箇所で追加したものを抜粋)

xml

1<platform name="android"> 2<resource-file src="google-services.json" target="google-services.json" /> 3 <preference name="loadUrlTimeoutValue" value="700000" /> 4 <preference name="android-minSdkVersion" value="21" /> 5</pratform> 6

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

cordova-plugin-googlemapsが影響しているようです。

以下のようにすれば、ビルドが正常終了し、動作もすることが確認できました。
(PUSH通知も動作します。)

1.プラグインのcordova-android-play-services-gradle-releaseを削除
2.cordova-plugin-googlemapsのバージョン2.4.1のものにする
※他のバージョンは、質問の内容と同じにビルドは正常終了するが、起動後真っ白画面になる。
3.phonegap-plugin-pushのインストールパラメータ(Conrdovaプラグインの管理から設定)に
FCM_VERSION=12.0.1を設定
4.cordova-plugin-googlemapsのインストールパラメータにPLAY_SERVICES_VERSION=12.0.1を追加

投稿2019/02/27 06:12

huckepain

総合スコア14

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問