WIKI DOCUMENTATION #17

Open
Sejadis opened this Issue Jul 20, 2016 · 41 comments

Projects

None yet
@Sejadis
Sejadis commented Jul 20, 2016

it would be nice if you could write a short guide on how to actually build the apk

i tried to figure out how to properly use gradle but im running from one error into the next :(

@comann
Collaborator
comann commented Jul 20, 2016

Assuming you are using Android Studio.

This is what I had to do:

  1. Install SDK 24 including all support repositories and tools
  2. Install Android Studio 2.2 preview. (Must be part of dev/canary channel). This will resolve the missing constraint layout dependency gradle complains about.
@omkarmoghe
Owner

We can set up a Wiki for this project with more detailed guides.

@IchigoWalker

image
Can you help me with that? Some kind of troubles with Gradle, maybe wrong version of it?

@omkarmoghe
Owner

@IchigoWalker first off, update your android studio to one of the 2.2 previews. Then open up your SDK manager and download the latest build tools, sdks etc. Finally I would try Build > Clean project

@omkarmoghe
Owner

@Sejadis @comann @IchigoWalker Added some basic stuff to the wiki. Please feel free to contribute!

@comann
Collaborator
comann commented Jul 21, 2016

@omkarmoghe I am not familar with how to contribute to a wiki. I cannot create PR's on a wiki according to this SO answer.

@omkarmoghe
Owner
omkarmoghe commented Jul 21, 2016 edited

@comann interesting. have you tried cloning the wiki? https://github.com/omkarmoghe/Pokemap.wiki.git
and then doing a PR?

if that doesnt work we can manually add peoples changes i guess... kinda shitty that github doesnt let you pr wikis

@comann
Collaborator
comann commented Jul 21, 2016

I am unable to create a PR successfully for the wiki repo. I have cloned the wiki and forked the main repo and to no avail. I was adding in

Prerequisites



  1. Android Studio v2.2 or later

  2. All 24.0.0 build tools, SDKs, and support libraries installed. ( This can be done by launching SDK Manager )


  3. Android Device or Emulator with API v17 or later
  4. Pokemon Go Account

Building 


  1. Launch Android Studio
    
2. File --> Open --> Local Path to Cloned Repository

  2. After Gradle has synced, run the PokemonMap application.

Troubleshooting



  • Gradle can't find the dependency 'com.android.support.constraint:constraint-layout:1.0.0-alpha4'. Download the latest Android Studio. At the time of this writing you need to have the latest in dev/canary channel. 

@omkarmoghe
Owner

@comann updated!

@Sejadis
Sejadis commented Jul 21, 2016

adding to

Gradle can't find the dependency 'com.android.support.constraint:constraint-layout:1.0.0-alpha4'. Download the latest Android Studio. At the time of this writing you need to have the latest in dev/canary channel.

I had to activate it manually in the SDK manager

@DarkN3ss61
Collaborator

Does someone want to add a compiled APK for now? I would but I'm not going to be at a computer for another 4 days...

@a1mo
a1mo commented Jul 21, 2016

i run this build on my phone, but i see only map (without pokemon)
user and password is correct

@jmrapp1
Contributor
jmrapp1 commented Jul 21, 2016

That's because it doesn't load pokemon yet.

@virusbaba01

screenshot from 2016-07-21 18 47 18

not much in to java and android please help me put all the steps i have updated everything

@omkarmoghe
Owner

@virusbaba01 try a 2.2 preview of android studio...

@omkarmoghe omkarmoghe changed the title from Step by step guide to apk? to WIKI DOCUMENTATION Jul 21, 2016
@omkarmoghe
Owner

We can use this for running updates to the wiki. Comment with things you want added!

@georgenetu

Typo in title - should be "Official". Also, using Pokémon instead of pokemon everywhere may please some of us :)

@omkarmoghe
Owner

@georgenetu thank you. i cant spell.

@omkarmoghe
Owner

@Animehq yes, it has not been merged in. still work in progress. also this issue is for wiki documentation, not general questions.

@psamsonov

@virusbaba01 You put your android{} block in the wrong build.gradle file. Do it for the module, not the top-level one.

@psamsonov

@comann same happened to me, how did you get your content added?

@a1mo
a1mo commented Jul 22, 2016

still does not display Pokemon in app. get and build last version.

@a1mo
a1mo commented Jul 22, 2016 edited

dear devs
i have last apk, but dont see 'getpoke' button and pokemons. why?
nexus 5. android 6.0.1

@Sejadis
Sejadis commented Jul 22, 2016

because its not implemented...

@xomikronx

I've done everything successfully. Built the project and built the APK. Installed APK, but no app icon. Can someone point me in the right direction?

@quinnj
quinnj commented Jul 27, 2016

It won't pop up on your home screen automatically, but if you look in your "app drawer" it should be there under "pokemap"

@dmitryartuh

Is it possible to inlog using google account?

@omkarmoghe
Owner

@dmitryartuh Google Auth has been having a lot of issues. Use PTC instead.

@xomikronx

@quinnj It's not in my drawer or on my home screen. When I look at Setting >> App, I see pokemap, but there isn't a way to run it. Just gives me the option to uninstall.

@xomikronx

I'm new to building so apologies for asking too many questions. When I try to Run the app from Android Studio, I get the following error:
Error running PokeMap: Default Activity not found
Could this be why my APK build isn't showing an Icon to run the app when installing to phone?

@s7092910
Contributor

@xomikronx what does your Android Manifest say?

@xomikronx

@s7092910 where can I find it?

@s7092910
Contributor

In android studio, with the project tab open, open the app folder and click on the manifest folder. It is in there.

@xomikronx
xomikronx commented Jul 28, 2016 edited

@s7092910 Heres the contents:
`

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity
        android:name=".views.MainActivity"
        android:theme="@style/AppTheme.NoActionBar"></activity>
    <activity android:name=".views.LoginActivity"></activity>
    <activity
        android:name=".views.settings.SettingsActivity"
        android:parentActivityName=".views.MainActivity" />
    <activity
        android:name=".views.GoogleAuthActivity"
        android:parentActivityName=".views.LoginActivity"
        android:theme="@style/AppTheme.NoActionBar"></activity>

    <activity android:name=".views.settings.ThemeActivity"
        android:parentActivityName=".views.settings.SettingsActivity"/>

    <!--
         use an alias in case we want to change the launch activity later without breaking
         homescreen shortcuts.  Note must be defined after the targetActivity
    -->
    <activity-alias
        android:name=".Launcher"
        android:label="@string/app_name"
        android:targetActivity=".views.LoginActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity-alias>

    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />
    <meta-data
        android:name="com.google.android.geo.PURPOSELY_OBSCURIING_API_KEY"
        android:value="PURPOSELY_OBSCURIING_API_KEY" />

    <service
        android:name=".controllers.service.PokemonNotificationService"
        android:enabled="true"
        android:exported="false">
        <intent-filter>
            <action android:name="com.omkarmoghe.pokemap.STOP_SERVICE"/>
        </intent-filter>


    </service>
</application>

`

@s7092910
Contributor

Try invalidating your android studio cache and restarting it. If that doesn't work, try running a clean build.

@xomikronx

Built successfully and installed successfully. Icon shows now and I am able to run the app. I enter my username and password. Now app is force closing. There is another reporting the crashing as well in #300 . Anyone else?

@xomikronx

@s7092910 Thanks for the help!

@snufflesrea

do you need any help?
I like pokemon go and just started to pick up coding skill

@phonglanhuong

Sry, I got the lastest code on dev branch , but when I run it, mPokemonGo.getMap().getCatchablePokemon() always return 0.
Please help me. Thanks...

@DarkN3ss61
Collaborator

@phonglanhuong please read the ReadMe before wasting our time. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment