![](/img/trans.png)
[英]Paypal module for Appcelerator 5.1.2 GA ( iOS, Android )
[英]Appcelerator CLI fails to launch Android App after updating from 8.2.0.GA to 9.0.X.GA SDK
自 2015 年以來,我有一個正在生產的應用程序,並且我已經使用不同的 Titanium SDK 版本對其進行了多次更新。
現在我需要再次更新它,我想使用最新的 Titanium SDK 9.0.2,但由於某種原因它無法在 Android 上啟動,iOS 工作正常。 該應用程序可以正確構建,但不會將其安裝到設備中,並且在啟動時會掛起。 它顯示的最后一條控制台消息是這樣的:
[INFO] App successfully installed
[INFO] Starting app: com.xxx.xxx/.xxxActivity (I hided the name)
[ERROR] Application failed to launch
The current timeout is set to 120000 ms
You can increase this timeout by running: titanium.js config android.appStartTimeout <timeout ms>
它說該應用程序已成功安裝,但事實並非如此。 我已經增加了超時時間,就像它說的那樣將時間加倍,結果是一樣的。
如果我使用 8.2.0.GA 運行完全相同的應用程序,它可以正常工作。
我在 MacOS 10.14.6 上使用 Android 設備(小米米 A2 Lite)和 Android 9。 這是我的配置:
──────────────────┤ Check Environment ├───────────────────
Node.js
✓ node installed (v10.13.0)
✓ npm installed (v6.4.1)
Titanium CLI
★ cli new version v5.2.2 available (currently v5.1.1)
Titanium CLI Dependencies
✓ acs up-to-date (v2.1.0)
✓ alloy up-to-date (v1.13.9)
✓ appc-cli-titanium up-to-date (v4.4.26)
✓ appc-inquirer up-to-date (v0.1.10)
✓ appc-logger up-to-date (v1.1.27)
✓ appc-platform-sdk up-to-date (v3.1.0)
✓ appcd up-to-date (v1.1.3)
✓ arrow up-to-date (v3.2.12)
✓ async up-to-date (v1.5.2)
✓ chalk up-to-date (v1.1.3)
✓ char-spinner up-to-date (v1.0.1)
✓ columnify up-to-date (v1.5.4)
✓ commander up-to-date (v2.9.0)
✓ debug up-to-date (v2.6.9)
✓ ejs up-to-date (v2.6.1)
✓ fields up-to-date (v0.1.24)
✓ fs-extra up-to-date (v0.26.7)
✓ inquirer up-to-date (v0.11.4)
✓ ip up-to-date (v1.1.5)
✓ jwt-simple up-to-date (v0.3.1)
✓ lodash up-to-date (v3.10.1)
✓ node-appc up-to-date (v0.2.49)
✓ node-forge up-to-date (v0.6.49)
✓ node-ios-device up-to-date (v1.7.1)
✓ npm-conf up-to-date (v1.1.3)
✓ pac-proxy-agent up-to-date (v2.0.2)
✓ plural up-to-date (v0.2.1)
✓ progress up-to-date (v1.1.8)
✓ recursive-readdir up-to-date (v2.2.2)
✓ request up-to-date (v2.88.0)
✓ retire up-to-date (v1.6.3)
✓ semver up-to-date (v5.7.0)
✓ tar up-to-date (v4.4.8)
✓ tiapp.xml up-to-date (v0.2.2)
✓ titanium up-to-date (v5.1.1)
✓ version-bump-prompt up-to-date (v3.1.2)
✓ which up-to-date (v1.3.1)
✓ wrench up-to-date (v1.5.9)
Titanium SDK
✓ latest sdk installed (v9.0.2.GA)
✓ selected sdk up-to-date (v9.0.2.GA)
Mac OS X Environment
✓ CLI Tools installed
iOS Environment
✓ Xcode installed (11.3.1)
✓ iOS SDK installed (13.2.2)
✓ WWDR cert installed
✓ developer cert installed (3 found)
✓ distribution cert installed (5 found)
✓ dev provisioning installed (21 found)
✓ dist provisioning installed (14 found)
Android Environment
✓ sdk installed (/Users/luiscript/android-sdk)
✓ tools installed (v25.2.5)
✓ platform tools installed (v29.0.6)
✓ build tools installed (v29.0.3)
✓ adb installed /Users/luiscript/android-sdk/platform-tools/adb
✕ android "android" executable not found; please reinstall Android SDK
✓ emulator installed /Users/luiscript/android-sdk/tools/emulator
✓ mksdcard installed /Users/luiscript/android-sdk/tools/mksdcard
✓ zipalign installed /Users/luiscript/android-sdk/build-tools/29.0.3/zipalign
✓ aapt installed /Users/luiscript/android-sdk/build-tools/29.0.3/aapt
✓ aidl installed /Users/luiscript/android-sdk/build-tools/29.0.3/aidl
✓ targets installed (9 found)
✓ avds installed (8 found)
✓ ndk installed (15.1.4119039)
✓ ndk-build installed (/Users/luiscript/android-ndk-r15b/ndk-build)
Java Development Kit
✓ jdk installed (v1.8.0)
✓ java installed /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java
✓ javac installed /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/javac
✓ keytool installed /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/keytool
✓ jarsigner installed /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/jarsigner
Intel® Hardware Accelerated Execution Manager (HAXM)
✓ compatible
! installed not found; install HAXM to use Android x86 emulator
Network
✓ online
- no proxy server configured
✓ Network connection test
✓ Java-based connection test
Directory Permissions
✓ home directory
✓ titanium config directory
✓ titanium sdk install directory
✓ temp directory
我嘗試了不同版本的節點但沒有成功。 現在我已經放棄了,我想我會使用 8.2.0.GA。 因為是適用於我的最新版本,它支持 iOS 13 和 Android 10。
這很奇怪,因為如果我創建一個全新的應用程序,它可以正常工作並安裝,而且我注意到新應用程序在 tiapp.xml 文件中有這個屬性:
<property name="appc-app-id" type="string">XXXXXXXXXXXXXXXXXX</property>
而我當前的應用程序沒有那個標簽,我不知道這是否與它有關。
關於如何解決這個問題的任何想法?
我不確定問題出在哪里,但我更新到了 MacOS Catalina 和 Xcode 11.5,現在一切正常,沒有任何變化。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.