-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
README should warn that editing gradle properties from Android Studio UI is not supported #61
Comments
it seems you are still using the previous version of gradle plugin; the new one uses "model". May you check you check whether your local downloaded .../teapot/build.gradle looks like this one: and your module build.gradle at .../teapot/app/build.gradle looks like this one: |
Hmmm, so apparently those changes happened when I went to Open Model Settings > Properties and set any of the properties. I had initially changed the properties because I only downloaded buildtools 23 and it was looking for 22.0.1. I downloaded 22.0.1 and then went in the dialog to change it and it must have added those fields. Now I'm getting the error about bad magic numbers (issue #58) which I was able to fix using the posted solution. Note, however, that if I use the F4 Properties dialog to set the versions to 1.7, it does so by adding the code block android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
} |
Here is my steps for the samples:
during the process, normally I do not need to change anything else. |
Oh, since you are using the Java 8, you need to add the |
Happy to continue to discussion in #43. We should update the |
reopening this, since we need to clear up why Android Studio made incompatible change to your app Sorry for the noise. |
Can you try out with "Android Studio 1.3.1"? I don't see the |
OK, managed to reproduce it with It will insert:
Using the old DSL syntax, we should update the README.md to call this out, and get a bug filed on bug.android.com. |
Updated this issue to track this. |
created a pull request: since we have a bug tracking it, and it will not be enabled for a while, I like to close this one for now. please let me know your thought, thanks |
closing this w/o a proper fix. feel free to re-open it. |
This is extremely similar to closed issue #47 , though they didn't say what the fix was. I just did a fresh download of Android Studio 1.3 and downloaded the NDK bundle via AndroidStudio. I have the following installed (amoungst others):
I cloned the samples repo from github and tried to build it. I get the following error:
My build.gradle:
My gradle-wrapper.properties
The text was updated successfully, but these errors were encountered: