-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
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
Apk Variant Output #14
Comments
This problem still exists in 1.0.7 |
This issue to due to using a newer version of gradle with Android Studio 3 and above. Changing the artifacts.gradle file as indicated in #14 is correct. However, you also may have to update your gradle version of the project. If you don't want to do this, use an older version of Android Studio; earlier than Version 3. |
I did this and now I'm getting this error: Gradle DSL method not found: 'deleteAllActions()' Not sure how to fix this, I'm not getting the option to update build tools version |
Hi iknowzo, Please see the following forum thread where I answered a similar question (see the first comment under the original question): |
Hi @levonlevonian I'm working on Android Studio 3.4.2 with the Fire App Builder to develop our Fire Tv application. I've tried to Clean & Rebuild the project, but I only get a lot of warnings complaining about a bunch of deprecated methods. I guess that happens when you try to work with outdated forks of Android on an Updated Android Studio Environment I've even tried to match the versions you used in your responses but It still complains about mismatched Gradle versions. Obviously I'm not going to downgrade Android Studio just for this development. Is there a workaround for this or I would need to use an old version of Android to be able to develop an app for Fire Tv? |
Hi @HelaGone For Gradle, are you using a wrapper or a local distribution? You can check that in Preferences, under "Build, Execution, Deployment", and then "Gradle". If you are using the wrapper, then normally Android Studio offers to update the wrapper for you if you click on the error telling you that it is not a supported version. Otherwise, go to /gradle/wrapper/gradle-wrapper.properties file, which contains a line that will look something like this: distributionUrl=https://services.gradle.org/distributions/gradle-X.Y.Z-all.zip -- here change the version at the end to a supported version. If you are using the local distribution, then again you will need to update your local Gradle to a supported version, or ideally switch to using the wrapper, which is a recommended way. It's not clear what you mean by "or I would need to use an old version of Android to be able to develop an app for Fire Tv?" What device and OS version are you testing your app on? Normally, you would connect to your Fire TV and build, run and test your app directly on it. Thanks! |
Hi @levonlevonian For Gradle I'm using the one that comes with the Fire App Builder, which is the wrapper. After try your suggestions I stumble on this error: Which is the same isse described by @iknowzo. I've followed the link you provide, and did the changes accordingly, but the error persists. This is the output:
Here's my setup: at build.gradle (Project: Application):
at artifacts.gradle:
at build.gradle (Module: app)
Let me know if this make sense or am I missing something? |
I'm getting this build error:
Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=Main{type=MAIN, fullName=debug, filters=[]}} of type com.android.build.gradle.internal.api.ApkVariantOutputImpl.
How can i fix this?
The text was updated successfully, but these errors were encountered: