Woah, super :) Managed to build it finally. I actually dunno what's that 
financialPortalActivity about, it's not my code. But from here on I can try 
different things out. Thanks to You! Thank You very much!

reede, 10. juuni 2016 4:43.15 UTC+3 kirjutas Mike D:
>
> When I load your project, I get errors on lines 22 and 44 of 
> MainActivity.java.  It can't find R.layout.main or financialPortalActivity. 
>  But the loadUrl line looks ok.
>
> To fix line 22, that should read: setContentView(R.layout.activity_main);
>
> You should also change line 10 to read: public class MainActivity extends 
> Activity 
> {
>
> I'm not sure what you're trying to do with the financialPortalActivity 
> object but that is clearly not defined anywhere in that class.  You can 
> probably comment out that line just to see if you can get the app to run. 
>  After making the above two changes and commenting out that line, it ran 
> okay for me in an emulator.
>
>
>
> 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 android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
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/28de79ab-5d1e-4dcf-b89a-0a3a4755d3fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to