mrmike / RenderScriptPlayground

Example of using RenderScript with Gradle and Android Studio. Works with Android API >= 8.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to import on Android Studio

AndroidDeveloperLB opened this issue · comments

I get this:

Error:(11, 0) Gradle DSL method not found: 'renderscriptSupportMode()'
Possible causes:

  • The project 'RenderScriptPlayground' may be using a version of Gradle that does not contain the method.
    Open Gradle wrapper file
  • The build file may be missing a Gradle plugin.
    Apply Gradle plugin
  • Also, would be nice to see a tutorial on how to make a project that has RS script.

Hello ,

Please install the latest plugins and restart Studio

Regards,
Amit

On Wed, Aug 5, 2015 at 4:59 AM, AndroidDeveloperLB <notifications@github.com

wrote:

I get this:

Error:(11, 0) Gradle DSL method not found: 'renderscriptSupportMode()'
Possible causes:

  • The project 'RenderScriptPlayground' may be using a version of
    Gradle that does not contain the method.
    Open Gradle wrapper file http://open.wrapper.file

  • The build file may be missing a Gradle plugin.
    Apply Gradle plugin http://apply.gradle.plugin

    Also, would be nice to see a tutorial on how to make a project that
    has RS script.


Reply to this email directly or view it on GitHub
#2.

Updated to latest plugins. Now I have this:
untitled20150813013200
After opening the project, it didn't compile, even after I've updated the versions within the project:
untitled20150813013453

Do R & D It happens sometims but after plugin install it will be resolved after sometime it seems that you are running an old version of Android Studio that's why it is asking for updation you need to update most of the things then error will be resolved soon .
Also please install or update sdk coz this error is shown only when you are using old gradle file so please update this things

No, I'm always using the latest version of Android Studio.
I've tried again. This time with Android-Studio 1.4 Preview 2 , and this is what I see:
untitled20150815222502

Opening the project again, and I see the same error as I've reported before.

Hello ,
Please read the link for guidence to migrate you gradle file from older version to newer version :http://tools.android.com/tech-docs/new-build-system/migrating-to-1-0-0 .Hope it will help.

Thanks & Regards,
Amit Singh Tomar

Nothing I've tried helped. Can you please fix the project?

Hi @AndroidDeveloperLB
I've just updated gradle and sdk version in the project. There's an issue with loading script for grayscale now but I'll try to fix it later. Everything else should works.

Now I get this error:

Error:Execution failed for task ':renderscript:compileArmDebugRenderscript'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\android\Sdk\build-tools\23.0.1\llvm-rs-cc.exe'' finished with non-zero exit value -1073741515

Any idea why it occurs? It even occurs when I try to create a project with Renderscript by myself...

Also, why do you use JNI ? To show how well it performs compared to RS ?

Hi @AndroidDeveloperLB

I've only added JNI to demonstrate how to use it and it's only used to detect processor type. You can easily remove this part of code and just use this http://developer.android.com/reference/android/os/Build.html#SUPPORTED_ABIS instead.

SUPPORTED_ABIS requires API 21 .
Also, why do you need it, if Renderscript is supposed to work on previous ones?

The issue I've written about also doesn't have anything to do with JNI. It disappears when using :

buildToolsVersion "22.0.1"

It's probably a bug of Google.

When doing it, it compiles fine. Now that I finally can look at the code, I'd like to also ask this:
where is the part you use your own RS script itself? I've ran the app, and I see blurry image, yet the script says "greyscale". ...

@AndroidDeveloperLB
Greyscale happens when you click on menu button, see loadMonoScript in MainActivity.java. But like I said it before it's not working after changing sdk versions.

oh. for some reason it shows a transparent menu item (didn't know it's even
possible).
you should have put a button instead, as there is no action bar.

On Wed, Sep 30, 2015 at 3:46 PM, Michal Moczulski notifications@github.com
wrote:

@AndroidDeveloperLB https://github.com/AndroidDeveloperLB
Greyscale happens when you click on menu button, see loadMonoScript in
MainActivity.java. But like I said it before it's not working after
changing sdk versions.


Reply to this email directly or view it on GitHub
#2 (comment)
.

When I'll have a bit more spare time I'll try to fix it.

Can I help you with something else?

I'm only starting to learn about Renderscript. If you have a nice tutorial,
this would be great.
Do note that currently your app won't work because of what I wrote.

On Wed, Sep 30, 2015 at 9:03 PM, Michal Moczulski notifications@github.com
wrote:

When I'll have a bit more spare time I'll try to fix it.

Can I help you with something else?


Reply to this email directly or view it on GitHub
#2 (comment)
.

nice . thank you !

On Fri, Oct 2, 2015 at 10:00 AM, Michal Moczulski notifications@github.com
wrote:

Closed #2 #2.


Reply to this email directly or view it on GitHub
#2 (comment)
.

I'm actually making a presentation. Any suggestion what topics to cover?

you can take "Marshmallow" Version for Presentation because its a very new
version many of them are unknown .
If presentation is of Android Related .
IF it is for other stream then you can use "climate change" coz it is a hot
topic nowadays. :)

Thanks & Regards,
Amit Singh Tomar

On Fri, Oct 2, 2015 at 9:23 AM, AndroidDeveloperLB <notifications@github.com

wrote:

I'm actually making a presentation. Any suggestion what topics to cover?


Reply to this email directly or view it on GitHub
#2 (comment)
.

What do you mean "Marshmallow" Version ? There are some new stuff regarding RS in Android 6 ?
If so, can you show a link?

This is the link of Youtube channel where you can see videos of Android latest version "Marshmallow" i.e. 6.0 or above so
https://www.youtube.com/user/androiddevelopers

you can see the videos and know more about this version and can do demonstration

I don't remember watching there anything that's about RS.

On Tue, Oct 6, 2015 at 8:42 AM, Amit Singh Tomar notifications@github.com
wrote:

This is the link of Youtube channel where you can see videos of Android
latest version "Marshmallow" i.e. 6.0 or above so
https://www.youtube.com/user/androiddevelopers

you can see the videos and know more about this version and can do
demonstration


Reply to this email directly or view it on GitHub
#2 (comment)
.

it is related to Android Versions not related to RS .

On Tue, Oct 6, 2015 at 12:10 PM, AndroidDeveloperLB <
notifications@github.com> wrote:

I don't remember watching there anything that's about RS.

On Tue, Oct 6, 2015 at 8:42 AM, Amit Singh Tomar <notifications@github.com

wrote:

This is the link of Youtube channel where you can see videos of Android
latest version "Marshmallow" i.e. 6.0 or above so
https://www.youtube.com/user/androiddevelopers

you can see the videos and know more about this version and can do
demonstration


Reply to this email directly or view it on GitHub
<
#2 (comment)

.


Reply to this email directly or view it on GitHub
#2 (comment)
.

The presentation is about RS...

On Tue, Oct 6, 2015 at 12:33 PM, Amit Singh Tomar notifications@github.com
wrote:

it is related to Android Versions not related to RS .

On Tue, Oct 6, 2015 at 12:10 PM, AndroidDeveloperLB <
notifications@github.com> wrote:

I don't remember watching there anything that's about RS.

On Tue, Oct 6, 2015 at 8:42 AM, Amit Singh Tomar <
notifications@github.com

wrote:

This is the link of Youtube channel where you can see videos of Android
latest version "Marshmallow" i.e. 6.0 or above so
https://www.youtube.com/user/androiddevelopers

you can see the videos and know more about this version and can do
demonstration


Reply to this email directly or view it on GitHub
<

#2 (comment)

.


Reply to this email directly or view it on GitHub
<
#2 (comment)

.


Reply to this email directly or view it on GitHub
#2 (comment)
.

Hey mrmike/RenderScriptP,

Discover high quality jobs and connect with recruiters on LinkedIn.

- Amit Singh

Accept invite: https://www.linkedin.com/e/v2?e=0-img6gggq-44&t=ssuw&ek=invite_guest&li=14&m=invite_guest&ts=india_a&sharedKey=FbHdqkFE&invitationId=6121261455867199488

You received an invitation to connect. LinkedIn will use your email address to make suggestions to our members in features like People You May Know. Unsubscribe here: https://www.linkedin.com/e/v2?e=0-img6gggq-44&t=lun&midToken=AQFmrFVhGEd36Q&ek=invite_guest&loid=AQEXYMBQMuqSjgAAAVPMXEQAkDv4_c-nXq7sp7_yie-m7wep76kMCQS0Bb3ruQlduu8mNqdJnyaRssyQK70c9FLt7O-c1KGGl0vhTzfapJ9bp2ztPxGRxBzwhZrfZTlIwT0_9An9irWvaBhyugihAInyudP9N9LFlUr01rHbrAoStg07xBNh35EXlQYYxlFHpr1y&eid=0-img6gggq-44

This email was sent to reply@reply.github.com.

If you need assistance or have questions, please contact LinkedIn Customer Service: https://www.linkedin.com/e/v2?e=0-img6gggq-44&a=customerServiceUrl&ek=invite_guest

© 2016 LinkedIn Corporation, 2029 Stierlin Court, Mountain View CA 94043. LinkedIn and the LinkedIn logo are registered trademarks of LinkedIn.

Hey mrmike/RenderScriptP,

Discover high quality jobs and connect with recruiters on LinkedIn.

- Amit Singh

Accept invite: https://www.linkedin.com/e/v2?e=0-img6ggyo-ul&t=ssuw&ek=invite_guest&li=14&m=invite_guest&ts=india_a&sharedKey=0yKMcC2k&invitationId=6121261454491475968

You received an invitation to connect. LinkedIn will use your email address to make suggestions to our members in features like People You May Know. Unsubscribe here: https://www.linkedin.com/e/v2?e=0-img6ggyo-ul&t=lun&midToken=AQFmrFVhGEd36Q&ek=invite_guest&loid=AQGXqY4tpisEUQAAAVPMYf0kdYsCICcWyn7zYEJh4RmXridqbBaMSiGT8NgUK6VGP8U5JwMS2hpPc8hpicxF5yZfuIZwQXvEa6RQdHaiMAQHz6A9yX5d7sgtdbI5JEEuk-iqHkD8rQoIQpQh0fY9bFHte2mYHIvtKTFr6V1ZrjNjmmTQgfFJ1QQQR8hs7PmejI69&eid=0-img6ggyo-ul

This email was sent to reply@reply.github.com.

If you need assistance or have questions, please contact LinkedIn Customer Service: https://www.linkedin.com/e/v2?e=0-img6ggyo-ul&a=customerServiceUrl&ek=invite_guest

© 2016 LinkedIn Corporation, 2029 Stierlin Court, Mountain View CA 94043. LinkedIn and the LinkedIn logo are registered trademarks of LinkedIn.

What is going on?!