2016-11-20 62 views
4

我剛剛下載了最新版本的Android工作室並試圖運行它,但我立即發現錯誤,提示「Android Studio意外退出」。Mac OSX:首次啓動時Android Studio意外退出

我遵循類似的線程建議設置STUDIO_SDK版本(在終端),但似乎沒有幫助。我試圖從啓動器和終端打開應用程序,但是我從兩種方式得到相同的錯誤。

$ echo $JAVA_HOME 
/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home 
$ echo $STUDIO_SDK 
/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk 
$ grep -A 1 "JVMVersion" /Applications/Android\ Studio.app//Contents/Info.plist 
     <key>JVMVersion</key> 
     <string>1.8*,1.8+</string> 

我還缺少什麼?

沒有idea.log文件,但問題報告低於:

Process:   launchd [11964] 
Path:   /Applications/Android Studio.app/Contents/MacOS/studio 
Identifier:  com.google.android.studio 
Version:   ??? (???) 
Code Type:  X86-64 (Native) 
Parent Process: launchd [9844] 

Date/Time:  2016-11-23 09:24:19.877 +0000 
OS Version:  Mac OS X 10.7.5 (11G63) 
Report Version: 9 

Interval Since Last Report:   7418 sec 
Crashes Since Last Report:   21 
Per-App Crashes Since Last Report: 18 
Anonymous UUID:      69831F0A-5E39-44B1-A534-CB06C4589328 

Crashed Thread: Unknown 

Exception Type: EXC_BAD_ACCESS (SIGSEGV) 
Exception Codes: KERN_INVALID_ADDRESS at 0x00007fff5fc01028 

Backtrace not available 

Unknown thread crashed with X86 Thread State (64-bit): 
    rax: 0x0000000000000055 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000 
    rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x0000000000000000 
    r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000 
    r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 
    rip: 0x00007fff5fc01028 rfl: 0x0000000000010203 cr2: 0x00007fff5fc01028 
Logical CPU: 2 

Binary images description not available 


External Modification Summary: 
    Calls made by other processes targeting this process: 
    task_for_pid: 1 
    thread_create: 0 
    thread_set_state: 0 
    Calls made by this process: 
    task_for_pid: 0 
    thread_create: 0 
    thread_set_state: 0 
    Calls made by all processes on this machine: 
    task_for_pid: 47204 
    thread_create: 0 
    thread_set_state: 0 

Model: MacBookPro8,1, BootROM MBP81.0047.B27, 2 processors, Intel Core i5, 2.4 GHz, 4 GB, SMC 1.68f99 
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB 
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020 
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020 
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.198.19.22) 
Bluetooth: Version 4.0.8f17, 2 service, 11 devices, 1 incoming serial ports 
Network Service: Wi-Fi, AirPort, en1 
Serial ATA Device: ST9500325ASG, 500.11 GB 
Serial ATA Device: HL-DT-ST DVDRW GS31N 
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8509, 0xfa200000/3 
USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfa100000/2 
USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000/5 
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821a, 0xfa113000/7 
USB Device: Apple Internal Keyboard/Trackpad, apple_vendor_id, 0x0252, 0xfa120000/4 
USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfd100000/2 
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd110000/3 
+0

檢查控制檯,並嘗試獲取一些日誌,看看崩潰是什麼......只憑這些信息就不可能知道發生了什麼事情。你有什麼版本的OS X?什麼電腦?其他Java應用程序的工作?你能從命令行編譯Java應用程序嗎?等等等等。 –

+0

我在2011年的Macbook Pro上使用OS X 10.7.5。在控制檯中,javac和java命令適合我。文件系統上的任何地方都沒有idea.log文件,但是有一個崩潰報告,我將在這篇文章中更新。 –

回答

5

,我發現我的問題。 OS X 10.7.5不支持Android Studio。在download page系統要求規定,我需要10.8.5至少有:

Mac®OS操作系統的10.8.5X®或更高,達10.12(MacOS的塞拉利昂)

+1

如果這就是答案,你應該這樣標記。 – DarkNeuron

+0

很高興聽到您找到您的答案! –

+0

謝謝馬丁,我也是。 –