Are there quotes around that URL in the source code?  Also, is it possible 
that you're compiling with a version of the WebView toolkit that does not 
take just a single URL as a parameter?

The message "error: ')' expected" makes me think it's just a syntax error 
and the way you pasted it has not quotes around the URL.  Also, 
http://your.url.com should be replaced with a valid url.  Try changing the 
line to:

mWebView.loadUrl("http://www.google.com";); to see if that works.


On Wednesday, June 8, 2016 at 11:57:44 AM UTC-5, ERPMusicVideos wrote:
>
> Hi,
> I'm trying to build my first app and am running into problems...
>
> I'm trying to compile this app:
>
>
> http://stackoverflow.com/questions/9199827/convert-a-website-to-an-android-application
>
> with Android Studio.. but I get errors.. 
>
> Also, before compiling, some small notifications pop up in the 
> MainActivity.java file, like "android.webkit.WebView? Alt+Enter" and a few 
> more. What does that mean?
>
> What am I doing wrong? I've been trying for quite some time now. I can 
> provide more information, but being a newbie I really don't know what 
> should I include to this post. Please ask if anything else is needed! Thank 
> You very much in advance for help!
>
> Here is the log:
>
> Executing tasks: [:app:generateDebugSources, 
> :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, 
> :app:prepareDebugUnitTestDependencies]
>
> Configuration on demand is an incubating feature.
> Incremental java compilation is an incubating feature.
> :app:preBuild UP-TO-DATE
> :app:preDebugBuild UP-TO-DATE
> :app:checkDebugManifest
> :app:preReleaseBuild UP-TO-DATE
> :app:prepareComAndroidSupportAnimatedVectorDrawable2340Library
> :app:prepareComAndroidSupportAppcompatV72340Library
> :app:prepareComAndroidSupportSupportV42340Library
> :app:prepareComAndroidSupportSupportVectorDrawable2340Library
> :app:prepareDebugDependencies
> :app:compileDebugAidl
> :app:compileDebugRenderscript
> :app:generateDebugBuildConfig
> :app:mergeDebugShaders
> :app:compileDebugShaders
> :app:generateDebugAssets
> :app:mergeDebugAssets
> :app:generateDebugResValues
> :app:generateDebugResources
> :app:mergeDebugResources
> :app:processDebugManifest
> :app:processDebugResources
> :app:generateDebugSources
> :app:preDebugAndroidTestBuild UP-TO-DATE
> :app:prepareDebugAndroidTestDependencies
> :app:compileDebugAndroidTestAidl
> :app:processDebugAndroidTestManifest
> :app:compileDebugAndroidTestRenderscript
> :app:generateDebugAndroidTestBuildConfig
> :app:mergeDebugAndroidTestShaders
> :app:compileDebugAndroidTestShaders
> :app:generateDebugAndroidTestAssets
> :app:mergeDebugAndroidTestAssets
> :app:generateDebugAndroidTestResValues
> :app:generateDebugAndroidTestResources
> :app:mergeDebugAndroidTestResources
> :app:processDebugAndroidTestResources
> :app:generateDebugAndroidTestSources
> :app:mockableAndroidJar
> :app:preDebugUnitTestBuild UP-TO-DATE
> :app:prepareDebugUnitTestDependencies
>
> BUILD SUCCESSFUL
>
> Total time: 8.728 secs
> Executing tasks: [:app:assembleDebug]
>
> Configuration on demand is an incubating feature.
> Incremental java compilation is an incubating feature.
> :app:preBuild UP-TO-DATE
> :app:preDebugBuild UP-TO-DATE
> :app:checkDebugManifest
> :app:preReleaseBuild UP-TO-DATE
> :app:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE
> :app:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE
> :app:prepareComAndroidSupportSupportV42340Library UP-TO-DATE
> :app:prepareComAndroidSupportSupportVectorDrawable2340Library UP-TO-DATE
> :app:prepareDebugDependencies
> :app:compileDebugAidl UP-TO-DATE
> :app:compileDebugRenderscript UP-TO-DATE
> :app:generateDebugBuildConfig UP-TO-DATE
> :app:mergeDebugShaders UP-TO-DATE
> :app:compileDebugShaders UP-TO-DATE
> :app:generateDebugAssets UP-TO-DATE
> :app:mergeDebugAssets UP-TO-DATE
> :app:generateDebugResValues UP-TO-DATE
> :app:generateDebugResources UP-TO-DATE
> :app:mergeDebugResources
> :app:processDebugManifest
> :app:processDebugResources
> :app:generateDebugSources
> :app:incrementalDebugJavaCompilationSafeguard
> :app:compileDebugJavaWithJavac
> :app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have 
> changed, no previous execution, etc.).
>
> C:\Users\Joh.PC\AndroidStudioProjects\MyApplication\app\src\main\java\com\erpmusic\www\myapplication\MainActivity.java:26:
>  
> error: ')' expected
>         mWebView.loadUrl(http://your.url.com);
>                              ^
> 1 error
>
> :app:compileDebugJavaWithJavac FAILED
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Execution failed for task ':app:compileDebugJavaWithJavac'.
> > Compilation failed; see the compiler error output for details.
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
>
> BUILD FAILED
>
> Total time: 1.113 secs
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/6a594b5e-608c-4701-81e9-545f7794149a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to