Skip to content

Use in studio 3.0.1 and can not find 'xyz.sahildave.mylibrary' #2

@qlang122

Description

@qlang122

in android studio 3.0.1 , gradle-4.1-all.
the project build failed,can`t find the class.
output details:

C:\Users\Administrator\Desktop\Flavored-Library-master\app\src\main\java\xyz\sahildave\flavoredlibrary\MainActivity.java:7: 错误: 程序包xyz.sahildave.mylibrary不存在
import xyz.sahildave.mylibrary.LibraryActivity;
^
C:\Users\Administrator\Desktop\Flavored-Library-master\app\src\main\java\xyz\sahildave\flavoredlibrary\MainActivity.java:15: 错误: 找不到符号
Intent intent = new Intent(this, LibraryActivity.class);
^
符号: 类 LibraryActivity
位置: 类 MainActivity
2 个错误

FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileApp1521DebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.


but gradle config sysc is no error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions