XML导致膨胀异常

我有这个错误:

Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class fragment ERROR ANDROID STUDIO

我的布局部分:

<fragment
    android:id="@id/imageView"
    class="com.example.probaharta.Main"
    android:layout_width="match_parent"
    android:layout_height="448dp"
    android:visibility="@string/google_maps_key"
    tools:layout="@layout/activity_main"
    tools:src="@layout/activity_main" />

</LinearLayout>

我的方法:

protected void onCreate (Bundle savedInstanceState){
   super.onCreate(savedInstanceState);

   setContentView(R.layout.activity_main);

   findViewById(android.R.id.content).setKeepScreenOn(true);
    imageview = findViewById(R.id.imageView);


    downloadManager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);
    locationManager = IALocationManager.create(this);

    Utils.shareTraceId(findViewById(R.id.imageView), Main.this, locationManager);