Cannot find symbol class createFragment

Can anybody tell me how to correct this error:

Error:(23, 28) error: cannot find symbol class createFragment

here is the code:
public abstract class SingleFragmentActivity extends AppCompatActivity {
protected abstract Fragment createFragment();
protected void onCreate(Bundle savedInstanceState) {

    FragmentManager fm = getSupportFragmentManager();
    Fragment fragment = fm.findFragmentById(;

    if (fragment == null) {
        fragment = new createFragment();
                .add(, fragment)



Drop the new from new createFragment() in line 23.

createFragment() is a factory method that produces a Fragment, and it should be called like any other method.

Using new createFragment() tells the compiler that there is a class named createFragment, and you wish to instantiate it with the default constructor. Since this class does not exist, the compiler throws an error.

thanks JasonI was wondering what a factory method was

Jason,Can you tell me what this error means?
----------------------------------------------------------------------------------------------------Error:Execution failed for task ‘:app:processDebugManifest’.

Manifest merger failed : Attribute value=(25.3.1) from [] AndroidManifest.xml:27:9-31
is also present at [] AndroidManifest.xml:24:9-38 value=(26.0.0-alpha1).
Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:25:5-27:34 to override.

how can I get android studio to find my SQLite library?
java.lang.ClassNotFoundException: org.sqlite.JDBC

Please check the following answer in this chapter.