如何修改SDK管理器路径?

时间:2016-01-05 07:56:36

标签: android android-studio android-studio-import

super.viewDidLoad()

    let tapGesture = UITapGestureRecognizer(target: self, action: Selector("hideKeyboard"))
    tapGesture.cancelsTouchesInView = true

    scrlView.addGestureRecognizer(tapGesture)

    //self.navigationController!.navigationBarHidden = true

     scrlView.contentSize = CGSizeMake(UIScreen .mainScreen().bounds.size.width, (regButton.frame.size.height + regButton.frame.origin.y)+20)

    // Do any additional setup after loading the view.
}

func hideKeyboard() {
    scrlView.endEditing(true)
    scrlView .setContentOffset(CGPointMake(0, 0), animated: true)
}


@IBAction func tapped(sender: AnyObject) {

    scrlView.endEditing(true)
    scrlView .setContentOffset(CGPointMake(0, 0), animated: true)
}

但我已将SDK路径修改为- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection ,如下图所示。 我也将Project structure-SDK Location更改为 "Error:Cause: failed to find target with hash string 'android-19' in: E:\android\android_sdk"

1 个答案:

答案 0 :(得分:0)

此错误提示您没有适用于Android-19的SDK,因此您只需点击Open Android SDK Manager并安装“Android 4.4.2(API 19)”:

enter image description here

然后重建项目。