We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Compilation failed; see the compiler error output for details.
but gradle config sysc is no error.
The text was updated successfully, but these errors were encountered:
apply plugin: 'com.android.library'
android { buildToolsVersion "26.0.2"
publishNonDefault true defaultConfig { versionCode 1 versionName "1.0" flavorDimensions "default" } productFlavors { sdk1521 { minSdkVersion 15 targetSdkVersion 26 compileSdkVersion 26 } sdk1524 { minSdkVersion 15 targetSdkVersion 26 compileSdkVersion 26 } }
apply plugin: 'com.android.application'
defaultConfig { applicationId "xyz.sahildave.flavoredlibrary" versionCode 1 versionName "1.0" flavorDimensions "default" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } productFlavors { app1521 { minSdkVersion 15 targetSdkVersion 26 compileSdkVersion 26 applicationId "xyz.sahildave.flavoredlibrary.app1521" } app1524 { minSdkVersion 15 targetSdkVersion 26 compileSdkVersion 26 applicationId "xyz.sahildave.flavoredlibrary.app1524" } }
}
configurations { app1521DebugCompile app1524DebugCompile }
dependencies { // compile 'com.android.support:appcompat-v7:24.1.0' app1521DebugCompile project(path: ':mylibrary', configuration: 'sdk1521Debug') app1524DebugCompile project(path: ':mylibrary', configuration: 'sdk1524Debug') app1521DebugCompile 'com.android.support:appcompat-v7:26.1.0' app1524DebugCompile 'com.android.support:appcompat-v7:26.1.0' }
Sorry, something went wrong.
No branches or pull requests
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.
Execution failed for task ':app:compileApp1521DebugJavaWithJavac'.
but gradle config sysc is no error.
The text was updated successfully, but these errors were encountered: