[android-developers] Re: Problems with building an APK in Android Studio (total newbie problems)

2016-06-10 Thread ERPMusicVideos
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

[android-developers] Re: Problems with building an APK in Android Studio (total newbie problems)

2016-06-09 Thread ERPMusicVideos
Here's the project file, please someone check, the problems are most 
probably very simple. I'm still stuck with a couple "cannot find symbol 
variable" errors etc.. Been trying to wrap my head around this half the 
day, but can't figure out how to make it compile :( Pls if anyone is 
willing to check, I really appreciate it! I'm usually not asking around 
like this but I'm kinda stuck here, really.

All the best!

-- 
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/bcc5ebc1-2313-4185-854b-6546cdaaa113%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Problems with building an APK in Android Studio (total newbie problems)

2016-06-09 Thread Mike D
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 G

[android-developers] Re: Problems with building an APK in Android Studio (total newbie problems)

2016-06-09 Thread ERPMusicVideos
Sorry, the file is here.. 

http://www117.zippyshare.com/v/lv9XUmGG/file.html

-- 
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/e81595a3-dae2-400d-abab-e777069ab0ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Problems with building an APK in Android Studio (total newbie problems)

2016-06-09 Thread ERPMusicVideos
Thanks for your input. I have tried all kinds of urls with and without " 
marks.. I seem to get all kinds of different errors,.. I have even tried 
different tutorials for a most basic webview app, but I always get errors. 
I just can't understand wtf is wrong, as if my Android Studio was missing 
something ...

-- 
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/86748430-e0bb-485b-b8ea-a98ee27272d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Problems with building an APK in Android Studio (total newbie problems)

2016-06-09 Thread 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 w