title: Java, Android, camerax programming. Error: cannot find symbol. symbol: class Builder
body: <p>I am try to take a picture with an Android smartphone by using the <a href="https://developer.android.com/training/camerax" rel="nofollow noreferrer">camerax</a> libary from Android.<br>
  I am following their <a href="https://developer.android.com/training/camerax/take-photo" rel="nofollow noreferrer">tutorial to capture images</a>.
  First I need to initalize the ImageCapturer:</p>
  
  <pre><code>ImageCapture imageCapture =
  new ImageCapture.Builder()
      .setTargetRotation(view.getDisplay().getRotation())
      .build();
  
  cameraProvider.bindToLifecycle(lifecycleOwner, cameraSelector, imageCapture, imageAnalysis, preview);
  </code></pre>
  
  <p>The Problem is I a error message and can't execute the code:</p>
  
  <pre><code>    ImageCapture imageCapture = new ImageCapture.Builder().setTargetRotation(view.getDisplay().getRotation()).build();
                                                  ^
    symbol:   class Builder
  </code></pre>
  
  <p>I included the dependencies for camerax in the gradle file:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  repositories {
      jcenter()
  }
  
  android {
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  
      compileSdkVersion 28
      buildToolsVersion "29.0.2"
      defaultConfig {
          applicationId "org.pytorch.digitrecognizer"
          minSdkVersion 21
          targetSdkVersion 28
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              debuggable true
          }
      }
  }
  
  dependencies {
      def camerax_version = '1.0.0-alpha06'
      implementation "androidx.camera:camera-core:${camerax_version}"
      implementation "androidx.camera:camera-camera2:${camerax_version}"
      implementation 'androidx.appcompat:appcompat:1.1.0'
      implementation 'org.pytorch:pytorch_android:1.4.0'
      implementation 'org.pytorch:pytorch_android_torchvision:1.4.0'
      implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  }
  </code></pre>
  
  <p>I don't know why it doesn't recognize the <code>.builderI</code>. I hope someone can help me ^^</p>