Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIKI DOCUMENTATION #17

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

WIKI DOCUMENTATION #17

Sejadis opened this issue Jul 20, 2016 · 41 comments

Comments

@Sejadis
Copy link

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
Copy link
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
Copy link
Owner

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

@IchigoWalker
Copy link

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

@omkarmoghe
Copy link
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
Copy link
Owner

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

@comann
Copy link
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
Copy link
Owner

omkarmoghe commented Jul 21, 2016

@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
Copy link
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
Copy link
Owner

@comann updated!

@Sejadis
Copy link
Author

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

@jLynx
Copy link
Collaborator

jLynx commented Jul 21, 2016

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
Copy link

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
Copy link
Contributor

jmrapp1 commented Jul 21, 2016

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

@virusbaba01
Copy link

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
Copy link
Owner

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

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

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

@ghost
Copy link

ghost commented Jul 21, 2016

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

@omkarmoghe
Copy link
Owner

@georgenetu thank you. i cant spell.

@omkarmoghe
Copy link
Owner

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

@psamsonov
Copy link

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

@psamsonov
Copy link

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

@a1mo
Copy link

a1mo commented Jul 22, 2016

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

@a1mo
Copy link

a1mo commented Jul 22, 2016

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

@Sejadis
Copy link
Author

Sejadis commented Jul 22, 2016

because its not implemented...

@xomikronx
Copy link

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
Copy link

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
Copy link

Is it possible to inlog using google account?

@omkarmoghe
Copy link
Owner

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

@xomikronx
Copy link

@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
Copy link

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
Copy link
Contributor

@xomikronx what does your Android Manifest say?

@xomikronx
Copy link

@s7092910 where can I find it?

@s7092910
Copy link
Contributor

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

@xomikronx
Copy link

xomikronx commented Jul 28, 2016

@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
Copy link
Contributor

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

@xomikronx
Copy link

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
Copy link

@s7092910 Thanks for the help!

@ghost
Copy link

ghost commented Aug 2, 2016

@omkarmoghe why not setup sphinx with github pages? https://daler.github.io/sphinxdoc-test/includeme.html

@andrea-liu87
Copy link

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

@ghost
Copy link

ghost commented Sep 30, 2016

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

@jLynx
Copy link
Collaborator

jLynx commented Sep 30, 2016

@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
Projects
None yet
Development

No branches or pull requests