0

Getting this error while building android app bundle -

Cannot find PROCESSED_RES output for Main{type=MAIN, fullName=debug, filters=[], versionCode=-1, versionName=null}

I have just added a dynamic feature module in existing android studio project, Getting this error while building android app bundle

Hemant Parmar
  • 3,924
  • 7
  • 25
  • 49
  • 1
    I had the same issue. And my app had abiSplit. I disabled it and it worked. https://stackoverflow.com/questions/56542195/java-io-ioexception-cannot-find-processed-res-output-for-main-dynamic-feature – Sivakumar S Jun 11 '19 at 12:41

1 Answers1

-2

change versionName and versionCode increment with every release

android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
    applicationId "com.company.app"
    minSdkVersion 16
    targetSdkVersion 28
    versionCode 14       // increment with every release
    versionName '1.4.8'   // change with every release

}

}

Yagnesh Lashkari
  • 228
  • 4
  • 15
  • try this android { applicationVariants.all { variant -> variant.outputs.each { output -> output.outputFile = new File( output.outputFile.parent, output.outputFile.name.replace(".apk", "-${variant.versionName}.apk")) } } } – Yagnesh Lashkari Jun 06 '19 at 11:38
  • still not working, can you please explain me the meaning of this error – Shridhar Salmalge Jun 06 '19 at 11:54
  • The "out" folder in the processed resources directory is empty for the feature module's build directory.This one is for issues with the sample – Yagnesh Lashkari Jun 06 '19 at 12:04
  • what happens? are you try run code any other person or github project so raise this error if yes then mark this answer as right answer – Yagnesh Lashkari Jun 06 '19 at 12:55
  • I am not running any other person code or github project, but like I mentioned in my problem statment I have added a dynamic feature module in existing android studio project, Getting this error while building android app bundle – Shridhar Salmalge Jun 07 '19 at 04:30