当前位置: 动力学知识库 > 问答 > 编程问答 >

android - Configuration with name 'default' not found AndroidStudio.(apwlibrary)

问题描述:

I am working on a project which requires generating a pdf document. In order to do so I followed the tutorial below

http://www.ssaurel.com/blog/learn-to-generate-pdf-documents-for-your-android-application/

I am receiving an error Configuration with name 'default' not found when importing a library into the project. I followed the instructions in the link below to import the library

https://github.com/MagicMicky/FreemiumLibrary/wiki/Import-the-library-in-Android-Studio

Only method 1 was possible since I couldnt download the library from within the project structure. This is my settings.gradle file

include ':app',':apwlibrary'

These are the contents of the app gradle file

 apply plugin: 'com.android.application'

android {

compileSdkVersion 25

buildToolsVersion "25.0.0"

defaultConfig {

applicationId "com.nobull.jkrishnan.pdfapplication"

minSdkVersion 19

targetSdkVersion 25

versionCode 1

versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}

buildTypes {

release {

minifyEnabled false

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

}

}

productFlavors {

}

}

dependencies {

compile fileTree(include: ['*.jar'], dir: 'libs')

androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {

exclude group: 'com.android.support', module: 'support-annotations'

})

compile 'com.android.support:appcompat-v7:25.0.0'

testCompile 'junit:junit:4.12'

compile 'com.itextpdf:itext-pdfa:5.5.10'

compile project(':apwlibrary')

}

The apwlibrary library file is inside the project folder and not inside the lib folder.

I am a rookie, so if the question doesnt contain relevant points or if the question is vague, plaese specify in the comments below. I am trying to be as specific as possible, but if the question still sounds vague, please specify the points needed and I will be more specific. Thank You.

分享给朋友:
您可能感兴趣的文章:
随机阅读: